Function at 0x46d674
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
or dword [ebp - 0xd4], ecx
sub al, 0xff
invalid
call dword [ebx - 0x75]
pop ebp
adc byte [esi + 0x33], dl
test byte [ecx - 0xfb7b], 0xff
mov eax, dword [ebp + 0x24]
push edi
mov dword [ebp - 0xd0], eax
mov eax, 0x7fff
push 3
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x90], eax
pop eax
mov dword [ebp - 0x78], eax
xor eax, eax
inc eax
mov dword [ebp - 0xf8], ecx
push 2
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x104], esi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0xc8], esi
pop ecx
cmp dword [ebp + 0x28], esi
je 0x46d759
mov eax, dword [0x49eec0]
inc eax
push eax
push ecx
mov dword [0x49eec0], eax
call 0x4c3106
push ebx
call dword [fcn.004780bc]
mov edi, eax
mov eax, dword [ebp + 0x18]
push 2
pop edx
mov ebx, dword [edi + 0x8c]
cmp ebx, eax
mov dword [edi + 0x60], esi
cmovl eax, ebx
mov dword [edi + 0x64], esi
sub ebx, dword [edi + 0x90]
xor ecx, ecx
mov dword [ebp + 0x18], eax
mov eax, dword [edi + 0x34]
cmp eax, edx
mov dword [ebp - 0x38], ebx
sete cl
mov dword [ebp - 0xcc], ecx
xor ecx, ecx
cmp eax, 0x22
sete cl
mov dword [ebp - 0x6c], ecx
sub eax, esi
je 0x46d7de
sub eax, edx
je 0x46d7de
sub eax, 0x16
je 0x46d7d0
sub eax, edx
je 0x46d7c2
sub eax, 6
je 0x46d7d0
sub eax, edx
je 0x46d7de
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], ecx
jmp 0x46d7e4
lea eax, [ebx + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
mov dword [edi + 0x70], esi
inc ecx
mov dword [ebp - 0xa8], ecx
jmp 0x46d7e1
xor ecx, ecx
inc ecx
mov dword [ebp - 0x70], esi
cmp ebx, ecx
jne 0x46d7f1
cmp dword [edi + 0x68], 0xffffffff
jne 0x46d7f1
mov dword [edi + 0x68], esi
lea eax, [edi + 0x10]
test byte [eax], 8
je 0x46d805
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0x10c], esi
push esi
push 8
push eax
call 0x4c7a72
mov ecx, dword [ebp + 0x18]
xor eax, eax
sub ecx, dword [ebp + 0x14]
push 3
cmp ecx, 1
mov dword [ebp - 0x60], ecx
pop edx
cmove edx, eax
mov eax, dword [edi + 0x34]
add eax, 0xfffffffd
mov dword [ebp - 0x88], edx
cmp eax, 0x1f
ja 0x46d989
movzx eax, byte [eax + 0x413a2d]
jmp dword [eax*4 + 0x413a05]
xor eax, eax
inc eax
cmp edx, 3
je 0x46d997
mov dword [ebp - 0x10c], esi
mov edx, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x48], eax
inc ecx
xor eax, eax
mov dword [ebp - 0xb4], esi
cmp edx, ecx
mov dword [ebp - 0xe4], esi
mov ebx, esi
mov dword [ebp - 0x54], esi
setg al
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0x70], ebx
jne 0x46d9df
cmp dword [ebp - 0xa8], ebx
jne 0x46d9df
mov eax, dword [edi + 0x84]
add eax, dword [edi + 0x78]
add eax, dword [edi + 0x70]
mov dword [ebp - 0xf4], eax
jmp 0x46d9e5
mov dword [ebp - 0xf4], esi
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp ecx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
jge 0x46dcf9
push eax
push edi
call fcn.0047a22f
mov ecx, eax
mov dword [ebp - 0x28], ecx
lea edx, [ecx + 0x30]
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x58], eax
cmp dword [ecx + 0x90], esi
je 0x46da7e
cmp dword [ecx + 0x10], esi
jl 0x46da7e
lea eax, [ebp - 0x100]
push eax
push dword [ecx + 0x10]
push 0x66
push dword [ebp + 0xc]
call 0x4980fd
test eax, eax
jne 0x46da78
push dword [ebp - 0x100]
call dword [fcn.004780bc]
mov ecx, eax
movsx eax, word [edi]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], esi
push dword [ebp - 0x100]
call dword [fcn.004780b8]
push dword [ebp - 0x100]
call 0x499662
push dword [ebp - 0x100]
call 0x499885
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x44], esi
push 4
lea eax, [ecx + 0xd4]
pop ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax - 0x10]
cmp ecx, 0xffffffff
je 0x46db37
lea eax, [ebp - 0x94]
push eax
push ecx
push 0x6b
push dword [ebp + 0xc]
call 0x4980fd
test eax, eax
je 0x46dacb
push dword [ebp - 0xec]
call 0x4974ec
mov eax, dword [ebp - 0x8c]
or dword [eax - 0x10], 0xffffffff
mov dword [eax], esi
jmp 0x46db37
push dword [ebp - 0x94]
call dword [fcn.004780bc]
push dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
call 0x499662
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x8c]
inc dword [eax + 0x10]
mov eax, dword [edx]
test eax, eax
js 0x46db1a
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x46db1a
mov ebx, dword [ebp - 0x74]
movsx ecx, word [edi]
imul eax, eax, 0x50
mov dword [eax + ebx + 0x48], ecx
mov ecx, ebx
imul eax, dword [edx], 0x50
mov edx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x4c]
mov dword [eax + ecx + 0x4c], edx
push dword [ebp - 0x94]
call dword [fcn.004780b8]
push dword [ebp - 0x94]
call 0x499885
mov eax, dword [ebp - 0x8c]
add eax, 4
sub ebx, 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x4c], ebx
jne 0x46da90
mov ecx, dword [ebp - 0x28]
mov ebx, esi
test dword [ecx + 0xf4], 0x100
je 0x46dc98
push ecx
push edi
call fcn.0047a319
cmp eax, 0xffffffff
je 0x46dc7e
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0x65
push dword [ebp + 0xc]
call 0x4980fd
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x46dd1c
push dword [ebp - 0x50]
call dword [fcn.004780bc]
mov ecx, eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ecx + 0x34]
sub eax, 0x18
je 0x46dbc6
push 2
pop edx
sub eax, edx
je 0x46dbc6
sub eax, 6
je 0x46dbc6
mov eax, dword [ebp - 0x28]
push esi
push 0x100
add eax, 0xf4
push eax
call 0x4c7a72
jmp 0x46dc6b
mov eax, dword [ecx + 0x8c]
dec eax
push eax
push ecx
call fcn.0047a22f
mov edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x74], edx
mov ecx, dword [edx + 0x38]
sub ecx, dword [edx + 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x38]
sub eax, dword [edx]
mov edx, dword [ebp - 0x74]
cmp ecx, eax
je 0x46dc08
xor eax, eax
inc eax
push eax
push 2
pop eax
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0x10
push eax
call 0x4c7a72
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x3c]
sub ecx, dword [eax + 0x34]
mov eax, dword [edx + 0x3c]
sub eax, dword [edx + 0x34]
cmp eax, ecx
je 0x46dc41
xor eax, eax
inc eax
push eax
push 2
pop eax
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0x10
push eax
call 0x4c7a72
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x74]
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x4c]
test byte [eax + 0x10], 2
je 0x46dc55
xor eax, eax
inc eax
mov dword [ebp - 0xc0], eax
jmp 0x46dc63
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0xc0], ebx
je 0x46dc6b
push dword [ebp - 0x50]
call 0x499662
push dword [ebp - 0x50]
call dword [fcn.004780b8]
push dword [ebp - 0x50]
call 0x499885
jmp 0x46dc98
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 0xffffffff
jne 0x46dc98
push esi
push 0x100
lea eax, [ecx + 0xf4]
push eax
call 0x4c7a72
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0xa8], ebx
je 0x46dcb4
mov ecx, dword [ebp - 0x90]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x48], ebx
je 0x46dccc
mov dword [ebp - 0x48], esi
cmp eax, dword [ebp - 0xb4]
jle 0x46dce3
mov dword [ebp - 0xb4], eax
jmp 0x46dce3
mov ecx, dword [ebp - 0xe4]
cmp eax, ecx
cmovg ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp + 0x18]
jl 0x46d9f9
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0xcc], esi
je 0x46dd38
xor eax, eax
inc eax
cmp ecx, eax
jle 0x46dd30
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0xb4]
jmp 0x46dd4d
push dword [ebp - 0xec]
call dword [fcn.004780b8]
mov eax, dword [ebp - 0x44]
jmp 0x46f7a6
mov eax, dword [ebp - 0xb4]
jmp 0x46dd4d
mov ecx, dword [ebp - 0xb4]
mov eax, ecx
cmp dword [ebp - 0xe4], ecx
cmovg eax, dword [ebp - 0xe4]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x6c], esi
je 0x46dd65
xor ecx, ecx
inc ecx
cmp edx, ecx
jle 0x46dd65
add eax, dword [edi + 0x84]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp + 0x14]
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
mov dword [ebp - 0x9c], eax
xor eax, eax
inc eax
mov dword [ebp - 0x98], eax
jmp 0x46f313
cmp dword [edi + 0x34], 0x1a
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x40], esi
je 0x46ddd8
cmp dword [edi + 0x34], 0x20
je 0x46ddb2
xor eax, eax
cmp ecx, dword [ebp + 0x14]
jmp 0x46de07
test ecx, ecx
jne 0x46ddd3
cmp dword [ebp - 0x104], ecx
jne 0x46ddd3
or dword [ebp - 0x74], 0xffffffff
lea ecx, [edx - 1]
xor eax, eax
mov dword [ebp - 0x3c], ecx
inc eax
mov dword [ebp - 0x104], eax
jmp 0x46de0a
mov dword [ebp - 0x60], esi
jmp 0x46de0d
cmp ecx, dword [ebp - 0x108]
jne 0x46de03
cmp dword [ebp - 0x104], 0
jne 0x46de03
lea eax, [ecx - 1]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x74], eax
lea ecx, [edx - 1]
xor eax, eax
mov dword [ebp - 0x3c], ecx
inc eax
mov dword [ebp - 0x104], eax
jmp 0x46de0d
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0x60], eax
push ecx
push edi
call fcn.0047a22f
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x28], ebx
call fcn.0046d616
mov eax, dword [ebx + 0xf4]
mov ecx, eax
and ecx, 4
mov dword [ebx + 0x14], esi
mov dword [ebp - 0x90], ecx
and eax, 0x80
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x60], 0
mov dword [ebp - 0x8c], eax
mov dword [ebx + 0x18], esi
mov dword [ebp - 0x30], ecx
jne 0x46de5a
add ecx, dword [ebx + 0x58]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0xa8], 0
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x2c], ecx
je 0x46df15
test eax, eax
je 0x46df15
cmp dword [edi + 0x2c], 0xffffffff
je 0x46df07
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x2c]
push 0x65
push dword [ebp + 0xc]
call 0x4980fd
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x46f798
push dword [ebp - 0x50]
call dword [fcn.004780bc]
push dword [edi + 0x30]
push eax
call fcn.0047a22f
mov esi, eax
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [ebp - 0x2c]
call dword [0x47c000]
push dword [esi + 0xf0]
lea eax, [ebx + 0xe4]
push dword [esi + 0xec]
push dword [esi + 0xe8]
push dword [esi + 0xe4]
push eax
call dword [0x47c000]
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
push dword [ebp - 0x50]
call dword [fcn.004780b8]
xor esi, esi
jmp 0x46df12
push esi
push esi
push esi
push esi
push ecx
call dword [0x47c000]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov dword [ebp - 0xa4], eax
lea eax, [ebx + 0x2c]
test dword [eax], 0x800
mov dword [ebp - 0x48], eax
je 0x46df36
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 4]
jmp 0x46df6c
cmp dword [ebp - 0x6c], 0
je 0x46df66
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jne 0x46df66
mov eax, dword [ebp - 0x7c]
push esi
push esi
push esi
push esi
push ecx
mov dword [ebp - 0x80], eax
call dword [0x47c000]
mov eax, dword [ebp - 0x30]
sub eax, dword [edi + 0x7c]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x64], eax
jmp 0x46df6f
mov edx, dword [ebx + 0xf0]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x98], 0
jne 0x46df89
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xb4]
add edx, eax
mov dword [ebp - 0x80], edx
push ebx
push edi
call fcn.0047a319
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x46edea
push dword [ebp - 0xec]
call dword [fcn.004780b8]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x4c]
push 0x65
push dword [ebp + 0xc]
call 0x4980fd
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x46f7a6
inc eax
push eax
push dword [ebp - 0x50]
call 0x499888
push dword [ebp - 0x50]
call 0x499662
push dword [ebp - 0x50]
call dword [fcn.004780bc]
mov ebx, eax
mov dword [ebp - 0xbc], ebx
cmp dword [ebx + 0x34], 0x13
je 0x46e01a
cmp dword [ebx + 0x34], 0x1c
jne 0x46e042
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0047a22f
cmp dword [ebp - 0x8c], 0
mov ecx, eax
jne 0x46e042
mov eax, dword [ecx + 0xec]
sub eax, dword [ecx + 0xe4]
jmp 0x46e029
cmp dword [ebp - 0x8c], 0
jne 0x46e042
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0xa4]
je 0x46e042
xor eax, eax
inc eax
push eax
push 2
pop eax
push eax
lea eax, [ebx + 0x10]
push eax
call 0x4c7a72
mov eax, dword [ebx + 0x34]
push 0x18
pop ecx
push 2
sub eax, ecx
pop ecx
je 0x46e05c
sub eax, ecx
je 0x46e05c
sub eax, 6
jne 0x46e146
mov eax, dword [ebp - 0x78]
cmp eax, 0xffffffff
je 0x46e131
xor edx, edx
inc edx
cmp eax, edx
je 0x46e0ab
cmp eax, ecx
jne 0x46e146
cmp dword [ebp - 0xd8], 0
push 0x20
pop edi
je 0x46e08f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x3c], eax
push 0x18
pop eax
cmovg edi, eax
cmp dword [ebx + 0x34], edi
je 0x46e146
push edx
push ecx
lea eax, [ebx + 0x10]
push eax
call 0x4c7a72
mov dword [ebx + 0x34], edi
jmp 0x46e146
cmp dword [ebp - 0xd8], 0
push 0x18
pop eax
mov ecx, eax
mov dword [ebp - 0x48], ecx
je 0x46e116
mov eax, dword [edi + 0x34]
sub eax, 3
je 0x46e0f9
push 2
pop edi
sub eax, edi
je 0x46e0d5
sub eax, 3
je 0x46e0e5
sub eax, 7
jne 0x46e119
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x3c], eax
jle 0x46e119
push 0x20
pop ecx
mov dword [ebp - 0x48], ecx
jmp 0x46e119
mov eax, dword [ebp + 0x14]
xor edx, edx
inc eax
inc edx
cmp dword [ebp - 0x3c], eax
jle 0x46e116
push 0x20
pop ecx
mov dword [ebp - 0x48], ecx
jmp 0x46e116
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x3c]
lea eax, [edi + 1]
cmp edx, eax
je 0x46e10d
lea eax, [edi + 3]
cmp edx, eax
jne 0x46e113
push 0x20
pop ecx
mov dword [ebp - 0x48], ecx
xor edx, edx
inc edx
push 2
pop edi
cmp dword [ebx + 0x34], ecx
je 0x46e146
push edx
push edi
lea eax, [ebx + 0x10]
push eax
call 0x4c7a72
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x34], eax
jmp 0x46e146
xor eax, eax
inc eax
push eax
push ecx
lea eax, [ebx + 0x10]
push eax
call 0x4c7a72
mov dword [ebx + 0x34], 0x19
movzx edi, byte [ebx + 0x10]
xor eax, eax
push dword [ebp - 0x50]
mov ebx, dword [ebx + 0x34]
inc eax
shr edi, 1
xor ecx, ecx
and edi, eax
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x68], 3
sete cl
mov dword [ebp - 0xb8], ecx
call dword [fcn.004780b8]
cmp dword [ebp + 0x20], 0
push 1
pop eax
cmovne edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x46e1af
push dword [ebp + 0x28]
push dword [ebp + 0x20]
push dword [ebp - 0xd0]
push dword [ebp - 0x50]
push dword [ebp + 0xc]
push dword [ebp - 0xfc]
call dword [ebx*4 + 0x49eee0]
mov edi, eax
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x46f332
push dword [ebp - 0xec]
call dword [fcn.004780bc]
push dword [ebp - 0x3c]
mov edi, eax
push edi
mov dword [ebp - 0xbc], edi
call fcn.0047a22f
push dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
call dword [fcn.004780bc]
cmp dword [ebp - 0xb8], 0
mov edx, eax
mov dword [ebp - 0x34], edx
je 0x46e223
cmp dword [ebp - 0xf0], 0
jne 0x46e223
cmp dword [ebp - 0x54], 0
jne 0x46e223
mov eax, dword [edx + 0xa4]
mov ecx, dword [eax + edx + 0xc]
mov eax, dword [edx + 0x50]
add eax, ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
sub edx, ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xa0]
mov dword [ecx + 0x14], edx
mov dword [eax + ecx + 4], edx
mov dword [eax + ecx + 0xc], edx
mov edx, ecx
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0xa0]
add ecx, edi
mov dword [ebp - 0x48], ecx
cmp ebx, 0x10
jg 0x46e3cf
je 0x46e5f4
sub ebx, 4
je 0x46e26d
push 2
pop edx
sub ebx, edx
je 0x46e26d
sub ebx, 3
je 0x46e5f4
sub ebx, 3
je 0x46e2e9
sub ebx, 1
jne 0x46e3f9
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xc8], ebx
jne 0x46e383
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push edi
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
call fcn.0047392a
test eax, eax
je 0x46e2c9
mov eax, dword [ebp - 0x28]
push ecx
push ecx
movsd xmm0, qword [eax + 0x124]
movsd qword [esp], xmm0
push dword [ebp - 0x2c]
call fcn.0047708a
cmp eax, ebx
jle 0x46e2c9
lea ebx, [eax + 3]
mov ecx, dword [ebp - 0x28]
test dword [ecx + 0x2c], 0x2800
jne 0x46e378
mov eax, dword [ecx + 0x80]
add eax, ebx
mov dword [ecx + 0x60], eax
jmp 0x46e37b
cmp dword [ebp - 0x6c], 0
je 0x46e2fe
mov eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x64], eax
mov ecx, eax
jmp 0x46e33f
test dword [eax + 0x2c], 0x2800
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
jne 0x46e320
mov eax, dword [eax + 0x80]
sub eax, dword [ecx + 0x88]
sub eax, dword [ebx]
add eax, dword [ebx + 8]
jmp 0x46e325
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x60], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
jne 0x46e33c
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x14]
jmp 0x46e342
mov ecx, dword [ecx + 0x60]
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebx + 0xa0]
add edx, ebx
mov dword [ebx + 0x14], ecx
mov dword [edx + 4], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebx + 0x98]
test eax, eax
jle 0x46e364
imul eax, eax, 0x14
mov dword [eax + edx - 8], ecx
mov edx, dword [ebp - 0x28]
cmp ecx, dword [ebx + 0x24]
jle 0x46e6d2
mov dword [ebx + 0x24], ecx
jmp 0x46e6d2
mov dword [ecx + 0x60], ebx
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
inc ebx
jmp 0x46e38c
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x60], eax
cmp dword [ebp - 0x6c], 0
je 0x46e6b0
mov eax, dword [ebp - 0x38]
cmp eax, ebx
mov ebx, dword [ebp - 0x34]
jle 0x46e3c1
imul eax, eax, 0x14
mov eax, dword [eax + ecx + 4]
sub eax, dword [ecx + 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ecx + 0x18]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x28]
jmp 0x46e6d2
mov eax, dword [ebp - 0x64]
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x46e3b6
sub ebx, 0x12
je 0x46e5f4
sub ebx, 4
je 0x46e552
push 2
pop ecx
sub ebx, ecx
je 0x46e505
sub ebx, ecx
je 0x46e48c
sub ebx, 6
je 0x46e452
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cdq
sub eax, edx
sar eax, 1
test dword [ecx + 0x2c], 0x2800
mov dword [ecx + 0x60], eax
jne 0x46e433
cmp dword [ecx + 0x10], esi
jl 0x46e433
mov eax, dword [ecx + 0x80]
sub eax, dword [ecx + 0x88]
sub eax, dword [ebx]
add eax, dword [ebx + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ecx + 0x60], eax
cmp dword [ebp - 0x6c], 0
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
je 0x46e44a
mov eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x28]
jmp 0x46e6d5
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x8c]
sub eax, ecx
push eax
push ebx
call fcn.0047a22f
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0047a22f
mov ecx, dword [ebp - 0x68]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x68], ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x40], ecx
jmp 0x46e537
mov ebx, dword [edx + 0x8c]
mov eax, ebx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
test edx, edx
jle 0x46e4b7
mov eax, dword [ebp - 0x34]
imul ecx, edx, 0x14
add ecx, dword [eax + 0xa0]
mov eax, dword [ecx + eax - 8]
mov dword [ebp - 0xb0], eax
jmp 0x46e4bd
mov eax, dword [ebp - 0xb0]
add dword [ebp - 0x30], eax
lea eax, [ebx - 1]
cmp edx, eax
jge 0x46e4f3
lea eax, [ebx - 2]
mov ebx, dword [ebp - 0x34]
push eax
push ebx
call fcn.0047a22f
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0047a22f
mov ecx, dword [ebp - 0x68]
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0x68], ecx
jmp 0x46e4f6
mov ebx, dword [ebp - 0x34]
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x8c]
dec eax
jmp 0x46e52d
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x8c]
imul eax, ecx, 0x14
add eax, dword [ebx + 0xa0]
mov eax, dword [eax + ebx - 0x1c]
add dword [ebp - 0x30], eax
mov dword [ebp - 0xb0], eax
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ecx - 1]
push eax
push ebx
call fcn.0047a22f
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0xc0], 0
mov edx, dword [ebp - 0x28]
jne 0x46e6d5
mov eax, dword [eax + 0x60]
mov dword [edx + 0x60], eax
jmp 0x46e6d5
cmp dword [ebp - 0x6c], 0
je 0x46e56d
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x64], eax
sub ecx, eax
jmp 0x46e5be
test dword [eax + 0x2c], 0x2800
mov ebx, dword [ebp - 0x2c]
jne 0x46e599
mov eax, dword [eax + 0x80]
mov ecx, dword [ebp - 0x28]
sub eax, dword [ecx + 0x88]
sub eax, dword [ebx]
add eax, dword [ebx + 8]
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
mov dword [ecx + 0x60], eax
jmp 0x46e5a9
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cdq
sub eax, edx
mov edx, dword [ebp - 0x28]
sar eax, 1
mov dword [edx + 0x60], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov ebx, dword [ebp - 0x34]
jne 0x46e5b8
mov ecx, dword [ebx + 0x14]
jmp 0x46e5be
mov ecx, dword [ebx + 0x58]
sub ecx, dword [edx + 0x60]
mov edx, dword [ebx + 0xa0]
add edx, ebx
mov dword [ebx + 0x14], ecx
mov dword [edx + 4], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [ebx + 0x98]
test eax, eax
jle 0x46e5e0
imul eax, eax, 0x14
mov dword [eax + edx - 0x10], ecx
mov edx, dword [ebp - 0x28]
cmp ecx, dword [ebx + 0x1c]
jge 0x46e6d2
mov dword [ebx + 0x1c], ecx
jmp 0x46e6d2
xor ebx, ebx
mov dword [ebp - 0xc8], esi
inc ebx
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0x110], ebx
jne 0x46e680
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x28]
push edi
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
call fcn.0047392a
test eax, eax
je 0x46e64c
mov eax, dword [ebp - 0x28]
push ecx
push ecx
movsd xmm0, qword [eax + 0x124]
movsd qword [esp], xmm0
push dword [ebp - 0x2c]
call fcn.0047708a
cmp eax, ebx
jge 0x46e64c
lea ebx, [eax + 3]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test dword [edx + 0x2c], 0x2800
mov eax, dword [ecx + 8]
jne 0x46e670
sub eax, dword [edx + 0x88]
sub eax, ebx
sub eax, dword [ecx]
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
inc ebx
jmp 0x46e686
sub eax, dword [ecx]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp - 0x28]
sar eax, 3
jmp 0x46e668
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x64]
cmp dword [ebp - 0x6c], 0
mov dword [edx + 0x60], eax
je 0x46e6cf
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jle 0x46e6b8
imul eax, eax, 0x14
mov ebx, dword [eax + ecx + 4]
mov eax, ebx
sub eax, dword [ecx + 0x18]
cdq
and edx, 7
add eax, edx
sar eax, 3
sub ebx, eax
mov dword [ebp - 0x64], ebx
mov ebx, dword [ebp - 0x34]
jmp 0x46e3b9
mov ecx, dword [ebp - 0x64]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
neg eax
add ecx, eax
mov dword [ebp - 0x64], ecx
jmp 0x46e6b0
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0xb8], 0
je 0x46e6ff
cmp dword [ebp - 0xf0], 0
jne 0x46e702
mov eax, dword [ebx + 0x58]
sub eax, dword [ebx + 0x14]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x5c]
sub eax, dword [ebx + 0x14]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], esi
cmp dword [ebp - 0x98], 0
jne 0x46e745
mov eax, dword [edx + 0x64]
add eax, dword [ebp - 0xb0]
sub dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
inc eax
cmp dword [ebp - 0x3c], eax
jg 0x46e729
cmp dword [ebp - 0x5c], 0
je 0x46e745
mov eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x30]
cmp ebx, eax
cmovl ebx, eax
mov eax, ebx
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
lea eax, [edx + 0x2c]
test dword [eax], 0x1000
mov dword [ebp - 0x48], eax
je 0x46e83a
cmp dword [ebp - 0x54], 0
je 0x46e81d
cmp dword [ebp - 0x8c], 0
jne 0x46e81d
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebx + 0x24]
sub ebx, dword [ecx + 0x1c]
cmp dword [ecx + 0x34], 0x1c
jne 0x46e7ae
mov eax, dword [ecx + 0x8c]
dec eax
push eax
push ecx
call fcn.0047a22f
mov ebx, dword [eax + 0xec]
sub ebx, dword [eax + 0xe4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call fcn.0047a27f
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add ebx, eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x38]
sub eax, dword [ecx]
cmp ebx, eax
je 0x46e7e4
cmp dword [0x47cb78], 0
jne 0x46e7e4
xor eax, eax
inc eax
push eax
push 2
mov dword [ebp - 0x114], eax
pop eax
push eax
push dword [ebp - 0x48]
call 0x4c7a72
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xfc], ebx
jmp 0x46e7ea
mov dword [edx + 0xfc], esi
mov ebx, dword [ebp - 0x34]
mov eax, esi
cmp dword [ebx + 0x34], 0x13
jne 0x46e7fa
mov eax, dword [ebx + 0x28]
jmp 0x46e814
cmp dword [ebx + 0x34], 0x1c
jne 0x46e817
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0047a22f
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 0x3c]
sub eax, dword [ebx + 0x20]
mov dword [edx + 0xf8], eax
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x7c]
mov dword [ebx + 0x54], eax
mov eax, dword [edx + 0xf8]
add eax, dword [ebp - 0x7c]
mov dword [edx + 0x100], eax
jmp 0x46eaa4
mov dword [edx + 0x100], esi
mov dword [edx + 0xf8], esi
mov dword [edx + 0xfc], esi
cmp dword [ebx + 0x98], esi
je 0x46e960
test ecx, ecx
jne 0x46e968
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebx + 0xa0]
add ebx, ecx
sub eax, dword [ecx + 0x84]
sub eax, dword [ecx + 0x78]
sub eax, dword [ecx + 0x70]
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x7c]
mov dword [ebx], eax
test byte [edi + 0x10], 0x20
jne 0x46e899
xor eax, eax
inc eax
push eax
push eax
lea eax, [ebx + 0x10]
push eax
call 0x4c7a72
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x110], 0
je 0x46e8ce
cmp dword [edx + 0xf0], 0
je 0x46e8ce
push dword [ebp - 0xc8]
push edx
call fcn.0046d57f
mov ecx, dword [ebp - 0x28]
test eax, eax
jne 0x46e8d1
mov eax, dword [ecx + 0x3c]
sub eax, dword [ecx + 0x34]
sub eax, dword [ecx + 0xf0]
add dword [ebx], eax
jmp 0x46e8d1
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x90], 0
je 0x46e913
mov eax, dword [edi + 0x34]
add eax, 0xfffffffd
cmp eax, 0x1d
ja 0x46e913
movzx eax, byte [eax + 0x413a59]
jmp dword [eax*4 + 0x413a4d]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp + 0x1c]
cmp dword [ebp - 0xb8], 0
mov dword [ecx + 0x54], eax
je 0x46eaa4
cmp dword [ebp - 0xf0], 0
je 0x46eabd
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x46eaa4
add dword [ecx + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0xc], eax
mov ebx, ecx
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x46eaa4
cmp dword [ebp - 0x98], 0
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x54], ecx
jne 0x46e988
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xb4]
add eax, ecx
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebx + 0x54]
add eax, ecx
cmp dword [ebp - 0xc0], 0
mov dword [ebp - 0x54], eax
jne 0x46eaa4
mov dword [ebx + 0x28], eax
mov eax, esi
mov dword [ebp - 0x118], esi
cmp dword [ebx + 0x8c], esi
jle 0x46eaa4
mov edi, dword [ebp - 0x54]
push eax
push ebx
call fcn.0047a22f
push eax
push ebx
mov dword [ebp - 0x54], eax
call fcn.0047a319
cmp eax, 0xffffffff
je 0x46ea8b
lea ecx, [ebp - 0x94]
push ecx
push eax
push 0x65
push dword [ebp + 0xc]
call 0x4980fd
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x46ea8b
push dword [ebp - 0x94]
call 0x499662
push dword [ebp - 0x94]
call dword [fcn.004780bc]
mov ebx, eax
mov eax, dword [ebp - 0x54]
mov edx, dword [ebx + 0x84]
add edx, dword [ebx + 0x78]
add edx, dword [ebx + 0x70]
mov dword [ebx + 0x54], edi
mov ecx, dword [eax + 0xf0]
add ecx, dword [eax + 0x34]
mov eax, dword [ebx + 0x28]
sub ecx, edi
add eax, edi
sub ecx, edx
add edx, eax
mov dword [ebx + 0x20], ecx
mov eax, dword [ebp - 0x34]
cmp edx, dword [eax + 0x28]
jle 0x46ea4d
mov dword [eax + 0x28], edx
cmp dword [ebx + 0x34], 0x13
je 0x46ea71
cmp dword [ebx + 0x34], 0x1c
je 0x46ea71
mov eax, dword [ebp - 0x54]
test byte [eax + 0xf4], 4
jne 0x46ea71
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0x20]
mov dword [ebx + ecx], eax
push dword [ebp - 0x94]
call dword [fcn.004780b8]
push dword [ebp - 0x94]
call 0x499885
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
cmp eax, dword [ebx + 0x8c]
jl 0x46e9c9
mov ecx, dword [ebp - 0xb8]
xor eax, eax
cmp dword [ebp - 0xf0], eax
cmovne ecx, eax
mov dword [ebp - 0xb8], ecx
jmp 0x46eac3
mov ecx, dword [ebp - 0xb8]
test ecx, ecx
je 0x46eaf7
mov eax, dword [ebp - 0x88]
xor ecx, ecx
mov ebx, dword [ebp - 0x28]
inc ecx
cmp eax, ecx
je 0x46eae3
add eax, 0xfffffffe
cmp eax, ecx
ja 0x46eae9
mov eax, dword [ebx + 0x20]
jmp 0x46eae6
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x28], eax
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x60]
add ecx, dword [ebx + 0x24]
mov ebx, dword [ebp - 0x34]
jmp 0x46eb03
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x34]
mov edx, dword [eax + 0x60]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebp - 0x28]
sub ecx, edx
mov eax, dword [ebx + 0x24]
sub eax, ecx
mov dword [ebp - 0x54], ecx
mov dword [edi + 0x14], eax
mov eax, ecx
sub eax, dword [ebx + 0x1c]
cmp dword [ebp - 0x40], 0
mov dword [edi + 0x18], eax
mov edi, dword [ebp - 0xbc]
je 0x46eb36
mov ebx, dword [ebp - 0x28]
sub eax, dword [ebp - 0xb0]
mov dword [ebx + 0x18], eax
mov ebx, dword [ebp - 0x34]
cmp dword [ebp - 0xe8], 0
jle 0x46ecf7
mov eax, dword [ebx + 0xa4]
push ecx
push dword [ebx + 0x94]
add eax, ebx
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.00478a15
mov ebx, eax
mov eax, dword [ebp - 0x28]
add ebx, dword [0x47cbbc]
cmp dword [ebp - 0x60], 0
jne 0x46eb7b
add ebx, dword [eax + 0x58]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x60], esi
cmp edx, ebx
jge 0x46ec00
cmp dword [ebp - 0xb8], 0
je 0x46ebbe
mov ecx, ebx
sub ecx, edx
mov edx, dword [eax + 0x28]
mov eax, edx
mov dword [ebp - 0x60], ecx
sub eax, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x28], eax
mov ecx, dword [ecx + 0x1c]
cmp eax, ecx
jge 0x46ebb6
mov eax, dword [ebp - 0x28]
sub edx, ecx
mov dword [ebp - 0x60], edx
mov dword [eax + 0x28], ecx
jmp 0x46ebb9
mov edx, dword [ebp - 0x60]
sub ebx, edx
mov edx, dword [ebp - 0x30]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0xbc], eax
test eax, eax
jle 0x46ebf4
mov eax, dword [ebp - 0xf8]
test eax, eax
js 0x46ebf4
push eax
push edi
call fcn.0047a22f
mov ecx, dword [eax + 0x28]
test ecx, ecx
jns 0x46ebf4
add ecx, dword [ebp - 0xbc]
xor edx, edx
test ecx, ecx
cmovg ecx, edx
mov dword [eax + 0x28], ecx
mov edx, ebx
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x30], edx
neg ebx
jmp 0x46ec73
jle 0x46ec69
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0xd4]
jne 0x46ec6e
push eax
push edi
call fcn.0047a22f
mov edx, dword [ebp - 0x30]
mov ecx, eax
xor eax, eax
sub edx, ebx
inc eax
mov dword [ebp - 0xbc], edx
mov ebx, dword [ecx + 0x28]
cmp dword [ebp - 0xe8], eax
jne 0x46ec4d
mov edx, dword [ecx + 0x1c]
cmp ebx, edx
jle 0x46ec5e
mov eax, ebx
sub eax, dword [ebp - 0xbc]
mov dword [ecx + 0x28], eax
cmp eax, edx
jge 0x46ec5e
mov dword [ecx + 0x28], edx
jmp 0x46ec5e
test ebx, ebx
jle 0x46ec5e
mov eax, ebx
sub eax, edx
push 0
pop edx
cmovs eax, edx
mov dword [ecx + 0x28], eax
sub ebx, dword [ecx + 0x28]
add dword [ecx + 0x14], ebx
sub dword [ecx + 0x18], ebx
jmp 0x46ec70
mov ebx, dword [ebp - 0x60]
jmp 0x46ec73
mov ebx, esi
mov edx, dword [ebp - 0x30]
cmp dword [ebp - 0x98], 0
je 0x46ecc3
cmp dword [ebp - 0x40], 0
je 0x46ec9e
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
test edx, edx
je 0x46ecc6
mov ecx, dword [ebp - 0x5c]
add eax, edx
sub ecx, dword [edi + 0x7c]
cmp eax, ecx
jge 0x46ecc3
mov eax, ecx
sub eax, edx
jmp 0x46ecb3
mov eax, dword [ebp - 0x48]
test dword [eax], 0x1000
je 0x46ecb8
mov eax, dword [ebp - 0x5c]
sub eax, dword [edi + 0x7c]
cmp edx, eax
jge 0x46ecc3
mov dword [ebp - 0x30], eax
jmp 0x46ecc6
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x30]
jmp 0x46ec8c
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
sub eax, ebx
push eax
push dword [ecx + 0x94]
mov eax, dword [ecx + 0xa4]
add eax, ecx
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.0047926e
jmp 0x46ed7e
cmp dword [ebp - 0x98], 0
je 0x46ed4b
cmp dword [ebp - 0x40], 0
je 0x46ed28
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x30]
test edx, edx
je 0x46ed4e
mov ecx, dword [ebp - 0x5c]
add eax, edx
sub ecx, dword [edi + 0x7c]
cmp eax, ecx
jge 0x46ed48
mov eax, ecx
mov ecx, dword [ebp - 0x54]
sub eax, edx
mov dword [ebp - 0x30], eax
jmp 0x46ed4e
mov eax, dword [ebp - 0x48]
test dword [eax], 0x1000
je 0x46ed43
mov eax, dword [ebp - 0x5c]
sub eax, dword [edi + 0x7c]
cmp dword [ebp - 0x30], eax
jge 0x46ed4b
mov dword [ebp - 0x30], eax
jmp 0x46ed4e
mov eax, dword [ebp - 0x30]
jmp 0x46ed10
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x6c], 0
je 0x46ed57
mov eax, dword [ebp - 0x64]
sub eax, ecx
push eax
mov eax, dword [ebx + 0xa4]
push ebx
push dword [ebx + 0x94]
add eax, ebx
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.00478957
push dword [ebp - 0x50]
call dword [fcn.004780b8]
push esi
push dword [ebp - 0x50]
call 0x499888
push dword [ebp - 0x50]
call 0x499885
cmp dword [ebp - 0x40], 0
je 0x46eda8
cmp dword [ebp - 0x58], 0
je 0x46ee2e
inc dword [ebp - 0xe8]
cmp dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xd4], eax
je 0x46edd9
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x28], esi
je 0x46ee2e
xor eax, eax
inc eax
mov dword [ebp - 0xdc], eax
jmp 0x46ee2e
or ecx, 0xffffffff
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0xf8], ecx
jmp 0x46ee31
cmp dword [ebp - 0x98], 0
jne 0x46ee14
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebx + 0x64]
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x5c]
jg 0x46ee0c
test eax, eax
je 0x46ee14
cmp ecx, eax
cmovl ecx, eax
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x60], 0
je 0x46ee2e
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.00479573
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x30]
mov ebx, edx
je 0x46eef7
cmp dword [ebp - 0x6c], 0
je 0x46ee59
cmp eax, dword [ebp - 0x38]
jne 0x46ee59
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
push dword [ebp - 0x2c]
jmp 0x46ee68
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 4]
neg eax
push eax
mov eax, edx
sub eax, dword [ecx]
push eax
push ecx
call dword [0x47c020]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x7c]
mov edx, dword [ecx + 8]
sub edx, dword [ecx]
add edx, eax
add edx, dword [ebp - 0x68]
cmp dword [ebp - 0xcc], 0
mov dword [ebp - 0x54], edx
je 0x46ef71
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x98], esi
je 0x46eeba
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x46ef71
sub eax, dword [ebp - 0xb0]
add eax, dword [ecx]
add eax, edx
mov dword [ebp - 0x5c], eax
jmp 0x46ef71
cmp dword [ebp - 0x4c], 0xffffffff
je 0x46ef71
mov ecx, dword [ebp - 0x48]
test dword [ecx], 0x1000
mov ecx, dword [ebp - 0x28]
je 0x46eedf
mov edx, dword [ecx + 0x38]
add edx, eax
mov dword [ebp - 0x5c], edx
jmp 0x46ef74
mov edx, dword [ecx + 0x60]
add edx, eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x5c]
add eax, dword [edx]
mov dword [ebp - 0x5c], eax
jmp 0x46ef77
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x80]
sub eax, dword [ecx + 4]
add eax, dword [ebp - 0xb4]
sub edx, dword [ecx]
push eax
push edx
push ecx
call dword [0x47c020]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edi + 0x7c]
mov edx, dword [ecx + 0x64]
mov ecx, dword [ecx + 0x38]
add edx, eax
mov dword [ebp - 0x54], edx
xor edx, edx
inc edx
mov dword [ebp - 0x98], edx
mov edx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx]
sub eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xa0]
cmp eax, edx
cmovl edx, eax
mov eax, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x68]
add eax, ecx
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
cmovg ecx, eax
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
test dword [ecx + 0x2c], 0x1000
je 0x46ef8f
mov eax, dword [ecx + 0xf0]
add eax, dword [ecx + 0x34]
sub dword [ecx + 0x100], eax
cmp dword [ebp - 0xa8], 0
je 0x46f1fb
cmp dword [ebp - 0x4c], 0xffffffff
je 0x46efbd
mov eax, dword [ecx + 0x60]
add eax, dword [edx]
cmp dword [edi + 0x60], 0
je 0x46efb2
cmp eax, dword [edi + 0x60]
jge 0x46efb5
mov dword [edi + 0x60], eax
cmp dword [edi + 0x64], eax
jge 0x46efbd
mov dword [edi + 0x64], eax
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0xac], eax
cmp ecx, 0x1a
jne 0x46f057
cmp dword [ebp - 0x8c], 0
je 0x46f04a
lea eax, [edx + 1]
mov dword [ebp - 0xac], eax
test eax, eax
jle 0x46f2f8
dec eax
push eax
push edi
mov dword [ebp - 0x58], eax
call fcn.0047a22f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x4c], eax
push ecx
push eax
call fcn.0046d616
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0xf4]
and eax, 4
je 0x46f1b2
xor edx, edx
inc edx
cmp dword [ebp - 0xac], edx
jle 0x46f1b2
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ecx + 0x30]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [ebp - 0x58]
jmp 0x46f2f2
mov edx, dword [ebp - 0x108]
cmp dword [ebp - 0x3c], edx
jl 0x46efe6
jmp 0x46f07a
push 0x18
pop edx
cmp ecx, edx
je 0x46efe6
cmp ecx, 0x20
jne 0x46f2f8
cmp dword [ebp - 0x8c], 0
jne 0x46f2f8
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x46f108
mov eax, dword [edi + 0x8c]
dec eax
push eax
push edi
call fcn.0047a22f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x4c], eax
push ecx
push eax
call fcn.0046d616
cmp dword [ebp - 0x90], 0
je 0x46f101
mov ecx, dword [edi + 0x8c]
sub ecx, dword [edi + 0x90]
dec ecx
test ecx, ecx
jle 0x46f0df
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x1c]
push 3
push esi
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push esi
jmp 0x46f2f2
push dword [ebp - 0x28]
push edi
call fcn.0047a319
cmp eax, 0xffffffff
je 0x46f101
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx]
add eax, dword [ebp - 0x24]
jmp 0x46f0c3
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
jmp 0x46f0fc
cmp ecx, 0x1a
jne 0x46f116
cmp eax, edx
jne 0x46f116
push dword [ebp - 0x38]
jmp 0x46f118
dec eax
push eax
push edi
call fcn.0047a22f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x58], eax
push ecx
push eax
call fcn.0046d616
cmp dword [ebp - 0x90], 0
je 0x46f1ab
mov eax, dword [edi + 0x8c]
sub eax, dword [edi + 0x90]
mov ecx, dword [ebp - 0x3c]
dec eax
cmp ecx, eax
jge 0x46f16d
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push ecx
jmp 0x46f2f2
push dword [ebp - 0x28]
push edi
call fcn.0047a319
cmp eax, 0xffffffff
je 0x46f1ab
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx]
add eax, dword [ebp - 0x24]
push 3
push esi
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [ebp - 0x3c]
jmp 0x46f2f2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
jmp 0x46f18a
test eax, eax
je 0x46f1e4
push ecx
push edi
call fcn.0047a319
mov ecx, dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x46f1e4
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ecx + 0x38]
sub eax, dword [ecx + 0x30]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 0x30]
jmp 0x46f036
mov eax, dword [ebp - 0x2c]
push 3
push esi
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
mov eax, dword [ecx + 0x38]
sub eax, dword [ebp - 0xc]
jmp 0x46f039
mov edx, dword [ebp - 0x38]
lea eax, [edx - 1]
cmp dword [ebp - 0x3c], eax
jne 0x46f217
xor eax, eax
inc eax
cmp edx, eax
jle 0x46f217
mov edx, eax
mov dword [ebp - 0xac], edx
jmp 0x46f21f
mov edx, esi
mov dword [ebp - 0xac], esi
cmp dword [ebp - 0x90], 0
je 0x46f253
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x46f234
cmp dword [ebp - 0x6c], 0
je 0x46f253
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x60]
push 2
mov eax, dword [eax]
add eax, ecx
pop ecx
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xf0]
sub eax, dword [ebp - 0x18]
jmp 0x46f270
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0x64]
push 2
mov eax, dword [eax]
add eax, ecx
pop ecx
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xe8]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
add eax, dword [ecx + 4]
push eax
mov eax, dword [edi + 0x84]
neg eax
push eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0xe0]
push eax
push edi
call fcn.00478e0b
cmp dword [ebp - 0x6c], 0
je 0x46f2f8
xor eax, eax
inc eax
cmp dword [ebp - 0x38], eax
jle 0x46f2f8
mov eax, dword [ebp - 0x48]
test dword [eax], 0x2000
mov eax, dword [ebp - 0x28]
jne 0x46f2b4
mov edx, dword [eax + 0x8c]
jmp 0x46f2b6
mov edx, esi
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0x2c]
push 0x2001
push dword [ebp - 0xac]
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
push eax
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ecx + 4]
add eax, ecx
push eax
mov eax, dword [ebp - 0x80]
sub ecx, edx
dec eax
add eax, ecx
mov ecx, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0xe0]
push eax
push edi
call fcn.00478e0b
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x3c]
je 0x46f307
dec edx
mov dword [ebp + 0x18], edx
cmp dword [ebp - 0x30], 0xb40
jg 0x46f341
lea ecx, [eax + 1]
mov dword [ebp - 0x3c], ecx
cmp ecx, edx
jl 0x46dd8a
cmp dword [ebp - 0xcc], 0
je 0x46f354
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0x38]
add ebx, dword [ebp - 0x68]
jmp 0x46f35f
push dword [ebp - 0x50]
call 0x499885
mov eax, edi
jmp 0x46f7a6
mov ecx, dword [ebp - 0xd0]
mov eax, dword [edi + 0x38]
push 0x67
pop esi
mov dword [ecx], eax
jmp 0x46f798
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0xa4]
add ebx, eax
cmp dword [ebp - 0x114], 0
mov dword [ebp - 0xa4], ebx
jne 0x46f996
cmp dword [ebp - 0xdc], 0
jne 0x46f7b9
cmp dword [ebp - 0x84], ebx
push esi
cmovg ebx, dword [ebp - 0x84]
push edi
mov dword [ebp - 0xa4], ebx
call fcn.0047a22f
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x30]
add ecx, 0xa
add eax, ecx
mov dword [edi + 0x58], eax
mov eax, dword [ebp - 0x38]
dec eax
push eax
push edi
call fcn.0047a22f
and dword [ebp - 0xfc], 0
mov dword [ebp - 0xdc], eax
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x30]
add edx, 0xfffffff6
mov eax, dword [edi + 0x68]
add ecx, edx
mov edx, dword [edi + 0x58]
mov esi, ecx
sub esi, edx
mov dword [edi + 0x5c], ecx
cmp dword [ebp - 0x38], 1
cmove eax, dword [ebp - 0xfc]
cmp dword [ebp - 0xa8], 0
jne 0x46f590
cmp eax, 0xffffffff
je 0x46f577
test eax, eax
je 0x46f4bf
cmp eax, 1
je 0x46f4b8
push 2
pop edx
cmp eax, edx
je 0x46f4b1
cmp eax, 3
je 0x46f4bf
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0xf4]
mov dword [edi + 0x18], eax
xor eax, eax
inc eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x50], ebx
cmp ecx, eax
jle 0x46f634
test edx, edx
jne 0x46f634
cmp dword [ebp - 0xa8], edx
jne 0x46f634
mov edx, dword [ebp - 0xe0]
imul eax, edx, 0x14
add edx, ecx
mov dword [ebp - 0xe0], edx
xor edx, edx
mov dword [ebp - 0xc8], edx
add eax, dword [edi + 0xa0]
add eax, edi
mov ecx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0x38], edx
jle 0x46f634
add eax, 0x18
xor ebx, ebx
mov dword [ebp - 0xdc], eax
mov ecx, dword [eax]
mov dword [ebp - 0x84], ecx
cmp ecx, esi
jl 0x46f5a6
mov ecx, esi
mov esi, 0x7fff
mov dword [ebp - 0x84], ecx
jmp 0x46f5af
mov esi, ecx
jmp 0x46f41d
mov esi, edx
jmp 0x46f41d
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x38], ecx
jne 0x46f4d8
mov eax, dword [ebp - 0xdc]
mov esi, dword [eax + 0x64]
add esi, dword [eax + 0x30]
jmp 0x46f41d
mov eax, ebx
sub eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0xa0]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0xa0]
sar esi, 1
add esi, eax
cmp dword [edi + 0x3c], ecx
jne 0x46f540
cmp dword [edi + 0x34], 0
je 0x46f505
push 2
pop ecx
cmp dword [edi + 0x34], ecx
jne 0x46f540
mov ecx, dword [edi + 0xa4]
neg eax
add ecx, edi
mov dword [ecx + 0xc], eax
push dword [edi + 0x94]
push ecx
call fcn.00479a43
mov dword [eax + 0xc], ebx
mov eax, dword [edi + 0xa4]
add eax, edi
push eax
push edi
call fcn.00478cb7
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x38]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x46f420
mov edx, dword [ebp - 0x70]
test edx, edx
jne 0x46f423
cmp esi, dword [edi + 0x58]
jge 0x46f566
mov esi, dword [edi + 0x58]
jmp 0x46f423
cmp esi, dword [edi + 0x5c]
jle 0x46f423
mov esi, dword [edi + 0x5c]
jmp 0x46f423
mov esi, dword [edi + 0x14]
cmp esi, edx
cmovl esi, edx
mov edx, dword [ebp - 0x70]
cmp esi, ecx
jle 0x46f588
mov esi, ecx
mov ecx, dword [ebp - 0x38]
jmp 0x46f423
mov eax, dword [edi + 0x8c]
dec eax
push eax
push edi
call fcn.0047a22f
mov esi, dword [eax + 0x60]
jmp 0x46f4d0
add eax, 0x14
mov dword [ebp - 0xdc], eax
mov eax, dword [edi + 0x84]
push ebx
push ebx
push ecx
push dword [ebp - 0xcc]
neg eax
push eax
push eax
mov eax, dword [ebp - 0xe0]
add eax, edx
push eax
push edi
call fcn.00478e0b
cmp dword [ebp - 0x6c], ebx
je 0x46f606
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
push ebx
push ebx
push dword [ebp - 0x84]
push dword [ebp - 0xcc]
push dword [eax + 4]
push dword [eax + 4]
mov eax, dword [ebp - 0xc8]
lea eax, [eax + ecx*2]
add eax, dword [ebp - 0xe0]
push eax
push edi
call fcn.00478e0b
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x84]
inc edx
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], edx
cmp edx, dword [ebp - 0x38]
jl 0x46f48f
mov ebx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x70]
mov eax, dword [edi + 0x80]
add eax, dword [ebp - 0xe4]
push esi
push edi
push eax
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0xa0]
push ebx
neg eax
push eax
mov eax, dword [edi + 0xa4]
push dword [edi + 0x94]
add eax, edi
push eax
call fcn.00478ea5
mov eax, dword [edi + 0xa4]
add eax, edi
push eax
push edi
call fcn.00478cb7
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x46f693
push edi
call fcn.00478d81
mov eax, dword [ebp - 0xa8]
test esi, esi
jne 0x46f788
test eax, eax
je 0x46f6b8
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp dword [edi + 0x2c], 0xffffffff
cmove eax, ecx
xor ebx, ebx
mov dword [edi + 0x98], eax
jmp 0x46f74e
mov esi, dword [ebp - 0x38]
xor edx, edx
inc edx
xor ebx, ebx
cmp esi, edx
jle 0x46f706
mov eax, dword [edi + 0x84]
push edx
push ebx
push dword [edi + 0x14]
neg eax
push dword [edi + 0x14]
push eax
mov eax, dword [ebp - 0xf4]
neg eax
push eax
push ebx
push edi
call fcn.00478e0b
lea eax, [esi*2 + 1]
mov dword [edi + 0x98], eax
cmp dword [ebp - 0x6c], ebx
je 0x46f74e
lea eax, [esi*4 + 1]
mov dword [edi + 0x98], eax
jmp 0x46f74e
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x46f740
cmp dword [edi + 0x38], ebx
jne 0x46f71e
mov dword [eax + edi], ebx
mov dword [eax + edi + 8], ebx
jmp 0x46f729
mov ecx, dword [ebp - 0xf4]
neg ecx
mov dword [eax + edi], ecx
add eax, 0x10
add eax, edi
push edx
push 3
push eax
and dword [eax], 0xffffdffc
call 0x4c7a72
xor edx, edx
inc edx
cmp dword [edi + 0x9c], ebx
je 0x46f74e
mov dword [edi + 0x98], edx
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x20]
cmp eax, 0x870
jg 0x46f768
mov eax, dword [edi + 0x24]
sub eax, dword [edi + 0x1c]
cmp eax, 0xb40
jle 0x46f77a
mov ecx, dword [ebp - 0xd0]
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x44], 0x67
mov dword [ecx], eax
push ebx
push 2
pop eax
push eax
lea eax, [edi + 0x10]
push eax
call 0x4c7a72
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0xc0], 0
push 0x6c
pop ebx
cmovne esi, ebx
push dword [ebp - 0xec]
call dword [fcn.004780b8]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0x4d1d2e
mov esp, ebp
pop ebp
ret 0x24
xor ecx, ecx
mov dword [ebp - 0x44], 0x6c
inc ecx
lea eax, [edi + 0x10]
push ecx
push 8
push eax
call 0x4c7a72
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0xd4]
jne 0x46f860
xor edx, edx
inc edx
cmp ecx, edx
jne 0x46f860
cmp dword [ebp - 0x88], 3
jne 0x46f860
push eax
push edi
call fcn.0047a22f
mov ecx, eax
mov eax, dword [ecx + 0x28]
test eax, eax
jle 0x46f788
sub ebx, dword [ecx + 0x14]
mov edx, dword [ecx + 0x30]
sub ebx, edx
mov edi, dword [ebp - 0xa0]
sub ebx, edi
test ebx, ebx
jle 0x46f788
cmp ebx, eax
jle 0x46f82c
sub dword [ecx + 0x18], eax
sub ebx, eax
add dword [ecx + 0x14], eax
mov dword [ecx + 0x28], esi
jmp 0x46f833
sub eax, ebx
mov ebx, esi
mov dword [ecx + 0x28], eax
test ebx, ebx
jle 0x46f788
sub edx, dword [ecx + 0x18]
cmp edx, edi
jge 0x46f788
mov esi, dword [ebp - 0x44]
sub edx, edi
neg ebx
mov dword [ecx + 0x28], edx
cmp edx, ebx
jge 0x46f78b
mov dword [ecx + 0x28], ebx
jmp 0x46f78b
cmp dword [ebp - 0x10c], 0
je 0x46f788
test byte [edi + 0x10], 4
jne 0x46f788
test ecx, ecx
je 0x46f788
or eax, 0xffffffff
mov dword [ebp - 0xd4], esi
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x84], eax
mov eax, esi
mov dword [ebp - 0xd0], esi
jle 0x46f788
mov ebx, dword [ebp - 0x84]
push eax
push edi
call fcn.0047a22f
push eax
push edi
mov dword [ebp - 0xfc], eax
call fcn.0047a319
mov edx, dword [ebp - 0xc4]
cmp eax, 0xffffffff
je 0x46f8fc
mov ecx, dword [ebp - 0xfc]
cmp dword [ecx + 0x28], edx
mov eax, dword [ecx + 0x30]
cmovl edx, dword [ecx + 0x28]
add eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0xd4]
cmp eax, ecx
mov dword [ebp - 0xc4], edx
cmovg ecx, eax
mov eax, dword [ebp - 0xd0]
test ebx, ebx
mov dword [ebp - 0xd4], ecx
cmovs ebx, eax
jmp 0x46f908
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
cmp eax, dword [ebp - 0x38]
jl 0x46f8a6
mov dword [ebp - 0x84], ebx
mov ebx, dword [ebp - 0xa4]
test edx, edx
jle 0x46f788
mov eax, dword [ebp - 0x84]
test eax, eax
js 0x46f788
cmp ecx, ebx
jle 0x46f961
push eax
push edi
call fcn.0047a22f
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x30]
add ecx, dword [ebp - 0xa0]
test ecx, ecx
jle 0x46f96e
cmp dword [ebp - 0xc4], ecx
jle 0x46f96e
mov dword [ebp - 0xc4], ecx
jmp 0x46f96e
sub ebx, ecx
cmp edx, ebx
cmovg edx, ebx
mov dword [ebp - 0xc4], edx
push esi
push edi
call fcn.0047a22f
mov ebx, eax
push ebx
push edi
call fcn.0047a319
test eax, eax
je 0x46f98b
mov eax, dword [ebp - 0xc4]
sub dword [ebx + 0x28], eax
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x46f96e
jmp 0x46f788
push 0x6b
pop esi
jmp 0x46f78b