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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push ebx
push ebp
lea eax, [edx + eax*2]
push esi
lea esi, [edx + edx*2]
push edi
lea ecx, [eax + eax*4]
lea esi, [esi + esi*8]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x74]
shl esi, 6
mov ebp, dword [ecx + eax*8 + 0x64]
lea eax, [ecx + eax*8 + 0x60]
add esi, edx
mov dword [esp + 0x30], eax
mov edx, dword [eax]
sub edx, ebp
xor ebp, ebp
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x4c]
shl esi, 2
inc edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
lea ebx, [esi + ecx + 0x58c]
mov esi, dword [eax + 0x40]
shl edx, 1
cmp edx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x7c], ebp
jbe 0x4209ab
mov edi, dword [eax + 0x44]
mov dword [esp + 0x5c], esi
cmp edx, edi
jbe 0x420999
sub edi, esi
mov esi, edx
mov dword [esp + 0x60], edi
mov edi, dword [eax + 0x44]
sub esi, edi
mov dword [esp + 0x64], esi
jmp 0x4209b7
mov edi, edx
mov dword [esp + 0x64], 0
sub edi, esi
mov dword [esp + 0x60], edi
jmp 0x4209b7
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebp
mov esi, 0x240
xor edi, edi
sub esi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x68], esi
lea edx, [edx + ecx + 0x208c]
mov dword [esp + 0x2c], edx
mov dword [edx], edi
mov edx, dword [eax + 0x18]
cmp edx, 2
jne 0x421277
mov edx, dword [eax + 0xc]
mov esi, dword [0x4605c0]
shl edx, 2
sub esi, edx
mov edx, dword [eax + 0x1c]
cmp edx, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ebx
je 0x420a46
mov edx, dword [ecx]
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x2c], 8
mov dword [esp + 0x3c], 1
lea edx, [edx + edx*2]
mov dword [esp + 0x20], 0
add edx, edi
lea edi, [edx + edx*2]
shl edi, 3
sub edi, edx
lea edx, [edi + edi*2]
lea edi, [edx*4 + 0x45cb38]
lea edx, [eax + 0xf0]
mov dword [esp + 0x18], edx
jmp 0x420a7b
mov edi, dword [ecx]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 3
lea edi, [edi + edi*2]
mov dword [esp + 0x20], 1
add edi, edx
lea edx, [eax + 0x54]
imul edi, edi, 0x1e0
add edi, 0x45d4f0
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x584]
test edx, edx
je 0x420a8c
add esi, 8
mov dword [esp + 0x34], esi
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
shl ecx, 5
add ecx, esi
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x34]
shl edx, 5
add edx, esi
shl ecx, 5
mov dword [esp + 0x54], edx
add ecx, esi
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x5c]
add eax, 0x20
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
lea ecx, [eax*8 + 0x469c30]
mov eax, dword [edx]
cdq
sub eax, edx
mov dword [esp + 0x70], ecx
sar eax, 1
je 0x420d64
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
jmp 0x420aff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov edx, ebp
dec ebp
test edx, edx
mov dword [esp + 0x10], ebp
jne 0x420bbf
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x420b4c
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
cmp ebx, ebp
jne 0x420b48
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov edx, 1
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x30]
add edi, ebx
mov dword [esp + 0x20], edx
imul edi, edi, 0x1e0
add edi, 0x45d55c
add eax, 0x78
test edx, edx
je 0x420b7e
mov edx, dword [eax]
mov ecx, dword [esp + 0x24]
shl edx, cl
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + ecx*4 + 0x50]
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
fld dword [ebx + edx*4]
fstp dword [esp + 0x7c]
jne 0x420b98
mov dword [esp + 0x1c], 0
jmp 0x420b98
mov edx, dword [eax]
mov ecx, dword [esp + 0x24]
shl edx, cl
mov ecx, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x18], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x7c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 8]
sar eax, 1
dec eax
inc ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
add edi, 0xc
lea ebx, [eax + edx*4]
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 4]
mov bp, word [eax]
add eax, 2
test bp, bp
jge 0x420c0b
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
je 0x4219d9
mov edx, dword [esi + 8]
mov edx, dword [edx]
shr edx, cl
test dl, 1
je 0x420bf2
movsx ecx, bp
neg ecx
lea eax, [eax + ecx*2]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x78]
add eax, 2
dec ebp
mov dword [esp + 0x78], ebp
mov bp, word [eax - 2]
test bp, bp
jl 0x420bd1
movsx ecx, bp
mov eax, ecx
and ecx, 0xf
sar eax, 4
test eax, eax
mov ebp, ecx
je 0x420ca8
cmp eax, 0xf
jne 0x420c48
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
push ecx
push esi
call fcn.0041c220
mov edx, dword [esp + 0x78]
add esp, 8
add eax, 0xf
mov ecx, dword [edx]
mov edx, dword [esp + 0x78]
sub edx, ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
je 0x420c77
mov edx, dword [esi + 8]
fld dword [eax*4 + 0x4605c8]
mov edx, dword [edx]
shr edx, cl
fmul dword [esp + 0x7c]
test dl, 1
je 0x420c9b
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x420cae
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
mov dword [esi + 8], ecx
fld dword [eax*4 + 0x4605c8]
fmul dword [esp + 0x7c]
test dl, 1
je 0x420c9b
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x420cae
mov dword [ebx], 0
mov eax, dword [esp + 0x3c]
shl eax, 2
add ebx, eax
mov dword [esp + 0x28], eax
test ebp, ebp
je 0x420d45
cmp ebp, 0xf
jne 0x420ced
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
push edx
push esi
call fcn.0041c220
mov ebp, eax
mov eax, dword [esp + 0x78]
add esp, 8
add ebp, 0xf
mov ecx, dword [eax]
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x420d10
mov edx, dword [esi + 8]
fld dword [ebp*4 + 0x4605c8]
mov eax, dword [edx]
shr eax, cl
fmul dword [esp + 0x7c]
test al, 1
je 0x420d34
jmp 0x420d32
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
mov dword [esi + 8], eax
fld dword [ebp*4 + 0x4605c8]
fmul dword [esp + 0x7c]
test cl, 1
je 0x420d34
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x420d4b
mov dword [ebx], 0
mov ebp, dword [esp + 0x10]
add ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], ebx
dec eax
mov dword [esp + 0x44], eax
jne 0x420af7
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
add eax, 4
add edx, 4
dec ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], ecx
jne 0x420acb
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x50]
lea eax, [edx*8 + 0x469d30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x4c], eax
je 0x4211f7
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x4211f7
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 4]
movsx ecx, word [eax]
add eax, 2
mov dword [esp + 0x70], ecx
test ecx, ecx
jge 0x420e31
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
je 0x420df3
mov edx, dword [esi + 8]
mov edx, dword [edx]
shr edx, cl
test dl, 1
je 0x420e15
mov ecx, dword [esp + 0x70]
neg ecx
lea eax, [eax + ecx*2]
jmp 0x420e15
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
test dl, 1
mov dword [esi + 8], ecx
je 0x420e19
mov ecx, dword [esp + 0x70]
neg ecx
lea eax, [eax + ecx*2]
jmp 0x420e19
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
add eax, 2
dec ecx
mov dword [esp + 0x78], ecx
movsx ecx, word [eax - 2]
test ecx, ecx
mov dword [esp + 0x70], ecx
jl 0x420dd3
mov eax, ebp
dec ebp
test eax, eax
jne 0x420eeb
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x420e7c
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x420e7c
mov ecx, dword [esp + 0x74]
mov edx, 1
mov dword [esp + 0x20], edx
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x30]
add edi, ebx
imul edi, edi, 0x1e0
add edi, 0x45d55c
add eax, 0x78
jmp 0x420e80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
test edx, edx
mov edx, dword [eax]
je 0x420eb6
shl edx, cl
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + ecx*4 + 0x50]
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
fld dword [ebx + edx*4]
fstp dword [esp + 0x7c]
jne 0x420eca
mov dword [esp + 0x1c], 0
jmp 0x420eca
shl edx, cl
mov ecx, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x18], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x7c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [esp + 0x38]
sar ebp, 1
dec ebp
inc ecx
mov dword [esp + 0x14], ecx
lea ebx, [eax + edx*4]
add edi, 0xc
test byte [esp + 0x70], 8
je 0x420f67
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x420f2c
mov edx, dword [esi + 8]
mov eax, dword [edx]
shr eax, cl
test al, 1
je 0x420f1b
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x420f6d
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
jmp 0x420f6d
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x420f56
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x420f6d
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
dec eax
mov dword [ebx], edx
mov dword [esp + 0x78], eax
jmp 0x420f6d
mov dword [ebx], 0
mov eax, dword [esp + 0x3c]
mov cl, byte [esp + 0x70]
shl eax, 2
add ebx, eax
mov dword [esp + 0x28], eax
test cl, 4
je 0x42100c
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x420fc9
mov edx, dword [esi + 8]
mov eax, dword [edx]
shr eax, cl
test al, 1
je 0x420fb4
mov eax, dword [esp + 0x78]
fld dword [esp + 0x7c]
dec eax
fchs
fstp dword [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x421012
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x421012
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x420ff7
mov eax, dword [esp + 0x78]
fld dword [esp + 0x7c]
dec eax
fchs
fstp dword [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x421012
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
dec eax
mov dword [ebx], edx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
jmp 0x421012
mov dword [ebx], 0
add ebx, eax
mov eax, ebp
dec ebp
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x4210d6
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x421063
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x421063
mov ecx, dword [esp + 0x74]
mov edx, 1
mov dword [esp + 0x20], edx
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x30]
add edi, ebx
imul edi, edi, 0x1e0
add edi, 0x45d55c
add eax, 0x78
jmp 0x421067
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
test edx, edx
mov edx, dword [eax]
je 0x42109d
shl edx, cl
mov ecx, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + ecx*4 + 0x50]
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
fld dword [ebx + edx*4]
fstp dword [esp + 0x7c]
jne 0x4210b1
mov dword [esp + 0x1c], 0
jmp 0x4210b1
shl edx, cl
mov ecx, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x18], eax
fld dword [ecx + edx*4]
fstp dword [esp + 0x7c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [esp + 0x38]
sar ebp, 1
dec ebp
inc ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
lea ebx, [eax + edx*4]
add edi, 0xc
test byte [esp + 0x70], 2
je 0x421152
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x421117
mov edx, dword [esi + 8]
mov eax, dword [edx]
shr eax, cl
test al, 1
je 0x421106
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421158
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
jmp 0x421158
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x421141
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421158
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
dec eax
mov dword [ebx], edx
mov dword [esp + 0x78], eax
jmp 0x421158
mov dword [ebx], 0
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x70]
add ebx, ecx
test al, 1
je 0x4211dc
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ecx, eax
je 0x4211a1
mov eax, dword [esi + 8]
mov edx, dword [eax]
shr edx, cl
test dl, 1
je 0x421190
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x4211e2
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
jmp 0x4211e2
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x4211cb
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x4211e2
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
dec eax
mov dword [ebx], ecx
mov dword [esp + 0x78], eax
jmp 0x4211e2
mov dword [ebx], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add ebx, ecx
dec eax
mov dword [esp + 0x4c], eax
jne 0x420db2
mov edx, ebp
dec ebp
test edx, edx
jne 0x42125e
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x421234
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x421234
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], 1
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
lea edi, [edi + edi*2]
add edi, ecx
imul edi, edi, 0x1e0
add edi, 0x45d55c
cmp dword [edi], 0
jl 0x421965
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ebp, eax
sar ebp, 1
dec ebp
inc ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
add edi, 0xc
lea ebx, [edx + ecx*4]
mov eax, dword [esp + 0x3c]
mov dword [ebx], 0
shl eax, 2
add ebx, eax
mov dword [ebx], 0
add ebx, eax
jmp 0x4211f7
mov edx, dword [eax + 0x48]
mov dword [esp + 0x20], 0x45e5d0
cmp edx, edi
jne 0x42128e
mov dword [esp + 0x20], 0x45e628
lea edx, [eax + 0xf0]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
shl edx, 2
mov esi, edx
mov edx, dword [0x4605c0]
sub edx, esi
mov esi, dword [ecx + 0x584]
cmp esi, edi
mov dword [esp + 0x38], edx
je 0x4212bd
add edx, 8
mov dword [esp + 0x38], edx
mov edx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x44], 3
lea edx, [edx + edx*2]
add ecx, edx
lea edx, [ecx + ecx*2]
shl edx, 3
sub edx, ecx
add eax, 0x20
mov dword [esp + 0x48], eax
lea ecx, [edx + edx*2]
lea edx, [ecx*4 + 0x45cb38]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [eax]
mov ecx, dword [esp + 0x40]
lea eax, [edx*8 + 0x469c30]
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
je 0x42152e
mov dword [esp + 0x4c], eax
mov edx, ebp
dec ebp
test edx, edx
mov dword [esp + 0x10], ebp
jne 0x42136a
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 4]
add ecx, 0xc
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov edi, dword [edx]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
add eax, 4
add edi, ecx
mov ecx, dword [esp + 0x24]
shl edi, cl
mov ecx, dword [esp + 0x38]
add edx, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
fld dword [ecx + edi*4]
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 4]
mov di, word [eax]
add eax, 2
test di, di
jge 0x4213d3
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
mov ebp, ecx
je 0x42139f
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov ecx, ebp
shr edx, cl
test dl, 1
je 0x4213be
movsx ecx, di
neg ecx
lea eax, [eax + ecx*2]
jmp 0x4213be
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
test dl, 1
mov dword [esi + 8], ecx
je 0x4213be
movsx edx, di
neg edx
lea eax, [eax + edx*2]
mov edi, dword [esp + 0x78]
add eax, 2
dec edi
mov dword [esp + 0x78], edi
mov di, word [eax - 2]
test di, di
jl 0x42137c
movsx ecx, di
mov eax, ecx
and ecx, 0xf
sar eax, 4
test eax, eax
mov edi, ecx
je 0x421473
cmp eax, 0xf
jne 0x421411
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp]
push eax
push esi
call fcn.0041c220
mov ecx, dword [ebp]
mov edx, dword [esp + 0x80]
add esp, 8
add eax, 0xf
sub edx, ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
mov ebp, ecx
je 0x421442
mov edx, dword [esi + 8]
fld dword [eax*4 + 0x4605c8]
mov edx, dword [edx]
shr edx, cl
fmul dword [esp + 0x7c]
test dl, 1
je 0x421466
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421479
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
mov dword [esi + 8], ecx
fld dword [eax*4 + 0x4605c8]
fmul dword [esp + 0x7c]
test dl, 1
je 0x421466
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421479
mov dword [ebx], 0
add ebx, 4
test edi, edi
je 0x421512
cmp edi, 0xf
jne 0x4214af
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp]
push eax
push esi
call fcn.0041c220
mov ecx, dword [ebp]
mov edi, eax
mov eax, dword [esp + 0x80]
add esp, 8
add edi, 0xf
sub eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov ebp, eax
je 0x4214e1
mov edx, dword [esi + 8]
mov ecx, ebp
fld dword [edi*4 + 0x4605c8]
mov eax, dword [edx]
shr eax, cl
fmul dword [esp + 0x7c]
test al, 1
je 0x421505
mov eax, dword [esp + 0x78]
fchs
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421518
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
mov dword [esi + 8], eax
fld dword [edi*4 + 0x4605c8]
fmul dword [esp + 0x7c]
test cl, 1
je 0x421505
fchs
mov eax, dword [esp + 0x78]
fstp dword [ebx]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421518
mov dword [ebx], 0
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x4c], eax
jne 0x42131a
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add eax, 4
add edx, 4
dec ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
jne 0x4212f8
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x50]
lea eax, [edx*8 + 0x469d30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x4c], eax
je 0x421914
mov ecx, dword [esp + 0x3c]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x78]
test edi, edi
jle 0x421918
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
movsx edx, word [eax]
add eax, 2
mov dword [esp + 0x70], edx
test edx, edx
jge 0x421606
mov ecx, dword [esi + 0x1c]
dec ecx
mov dword [esi + 0x1c], ecx
mov edi, ecx
je 0x4215cc
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov ecx, edi
shr edx, cl
test dl, 1
je 0x4215e8
mov ecx, dword [esp + 0x70]
neg ecx
lea eax, [eax + ecx*2]
jmp 0x4215e8
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
test byte [ecx], 1
lea ecx, [ecx + 4]
mov dword [esi + 8], ecx
je 0x4215ec
neg edx
lea eax, [eax + edx*2]
jmp 0x4215ec
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
add eax, 2
dec ecx
mov dword [esp + 0x78], ecx
movsx ecx, word [eax - 2]
test ecx, ecx
mov dword [esp + 0x70], ecx
mov edx, ecx
jl 0x4215a8
mov eax, ebp
dec ebp
test eax, eax
jne 0x421653
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
add ecx, 0xc
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
add eax, 4
add edi, ecx
mov ecx, dword [esp + 0x24]
shl edi, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
sar ebp, 1
dec ebp
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x70]
fld dword [ecx + edi*4]
fstp dword [esp + 0x7c]
test dl, 8
je 0x4216e1
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x42169f
mov eax, dword [esi + 8]
mov ecx, edi
mov eax, dword [eax]
shr eax, cl
test al, 1
je 0x42168b
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x4216ea
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x4216ea
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x4216cd
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x4216ea
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x4216ea
mov dword [ebx], 0
add ebx, 4
test dl, 4
je 0x421778
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x421736
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov ecx, edi
shr eax, cl
test al, 1
je 0x421722
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421781
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x421781
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x421764
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421781
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x421781
mov dword [ebx], 0
add ebx, 4
mov ecx, ebp
dec ebp
test ecx, ecx
mov dword [esp + 0x10], ebp
jne 0x4217d6
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
add ecx, 0xc
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
add eax, 4
add edi, ecx
mov ecx, dword [esp + 0x24]
shl edi, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
sar ebp, 1
dec ebp
add edx, 4
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x70]
fld dword [ecx + edi*4]
mov dword [esp + 0x10], ebp
fstp dword [esp + 0x7c]
test dl, 2
je 0x421864
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x421822
mov eax, dword [esi + 8]
mov ecx, edi
mov eax, dword [eax]
shr eax, cl
test al, 1
je 0x42180e
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x42186d
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x42186d
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x421850
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x42186d
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x42186d
mov dword [ebx], 0
add ebx, 4
test dl, 1
je 0x4218fc
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
mov edi, eax
je 0x4218ba
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov ecx, edi
shr edx, cl
test dl, 1
je 0x4218a6
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421905
mov eax, dword [esp + 0x7c]
mov dword [ebx], eax
mov eax, dword [esp + 0x78]
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x421905
mov eax, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov cl, byte [eax]
lea eax, [eax + 4]
test cl, 1
mov dword [esi + 8], eax
je 0x4218e8
fld dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
add ebx, 4
fchs
fstp dword [ebx - 4]
dec eax
mov dword [esp + 0x78], eax
jmp 0x421905
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [ebx], ecx
add ebx, 4
dec eax
mov dword [esp + 0x78], eax
jmp 0x421905
mov dword [ebx], 0
add ebx, 4
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x4c], eax
jne 0x421587
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
sub ecx, ebx
mov eax, 0x38e38e39
lea ecx, [ecx + edx + 0xe8c]
sar ecx, 2
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x421969
mov dword [ebx], 0
add ebx, 4
mov dword [ebx], 0
add ebx, 4
dec eax
jne 0x42194e
jmp 0x421969
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4219d1
jle 0x4219a0
cmp edi, 0x20
jl 0x42198a
mov ebx, edi
shr ebx, 5
push 0x20
push esi
call fcn.0041c220
add esp, 8
sub edi, 0x20
dec ebx
jne 0x421979
test edi, edi
je 0x4219d1
push edi
push esi
call fcn.0041c220
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp edi, 0xffffffe0
jg 0x4219c1
mov ebx, edi
neg ebx
shr ebx, 5
mov ecx, ebx
shl ecx, 5
add edi, ecx
push 0x20
push esi
call fcn.0041c1f0
add esp, 8
dec ebx
jne 0x4219b3
test edi, edi
je 0x4219d1
neg edi
push edi
push esi
call fcn.0041c1f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], 0x20
mov dl, byte [ecx]
lea ecx, [ecx + 4]
test dl, 1
mov dword [esi + 8], ecx
je 0x420bf6
movsx edx, bp
neg edx
lea eax, [eax + edx*2]
jmp 0x420bf6