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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x2c]
push esi
xor esi, esi
cmp eax, esi
je 0x4207df
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x4207ea
call fcn.00424ab0
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [ebp + 0x24]
cmp eax, 1
jne 0x420820
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov eax, dword [ebp]
push esi
push ebx
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x10]
pop esi
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
cmp eax, 2
jne 0x420d22
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [eax + 0x24]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x30], edi
jne 0x420854
fld qword [0x5d76b8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], SysStringLen
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov byte [esp + 0x8c], 0
mov edx, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.00491160
test byte [edi + 0x38], 4
mov eax, dword [esp + 0x70]
je 0x4208b2
movzx edx, word [edi + 0x36]
lea eax, [eax + edx*2]
jmp 0x4208b8
movzx ecx, word [edi + 0x36]
add eax, ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
add eax, 6
mov dword [esp + 0x70], eax
add eax, edx
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x28]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x420841
cmp ebx, 8
mov dword [esp + 0x28], 0
jl 0x420912
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
test al, al
je 0x420912
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x2c]
mov dword [esp + 0x28], eax
cmp ebx, 8
mov dword [esp + 0x2c], 0
jl 0x420942
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
test eax, eax
je 0x420942
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.00426730
mov dword [esp + 0x2c], eax
cmp byte [edi + 0x7e], 0x4b
mov dword [esp + 0x18], 0x400
jne 0x420958
mov dword [esp + 0x18], 0x5000
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x420bd0
push edi
call fcn.00468b40
add esp, 4
test eax, eax
mov dword [esp + 0x44], eax
je 0x420bd0
mov eax, dword [esp + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], 0
jle 0x420bb2
mov dword [esp + 0x24], esi
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov di, word [ecx + ebx*2]
cmp di, 0xffff
je 0x420b97
mov eax, dword [esp + 0x38]
movzx edx, di
xor ecx, ecx
mov ch, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
movzx edx, byte [eax]
or ecx, edx
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
test ecx, ecx
fstp dword [esp + 0x10]
je 0x420a5f
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.0043f1b0
test eax, eax
mov eax, dword [esp + 0x34]
je 0x420a1a
movsx ecx, ax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x420a5f
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x420a5f
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x420a43
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x18]
cdq
idiv ecx
movsx edx, ax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x420a6d
neg eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
movsx eax, word [esp + 0x18]
mov dword [esp + 0x40], eax
fmul dword [esp + 0x10]
mov esi, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
fidiv dword [esp + 0x40]
fstp dword [esp + 0x10]
call fcn.004898d0
mov ecx, eax
call fcn.004692f0
cmp eax, 1
jne 0x420b62
test di, di
je 0x420b62
mov edi, dword [esp + 0x24]
cmp word [edi], 0x20
je 0x420b62
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x420ace
neg eax
fld qword [esp + 0xa8]
push 1
fadd dword [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x58]
xor ecx, ecx
mov cx, word [eax + ebx*2]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
push edx
xor edx, edx
mov dx, word [edi]
mov dword [esp + 0x60], 0
push ecx
mov ecx, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0046a020
add esi, 0x54
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x5c], edx
fld dword [esp + 0x5c]
mov dword [esp + 0x54], eax
fdiv dword [esp + 0x54]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], edx
fmul dword [esp + 0x10]
fld dword [esp + 0x64]
fmul dword [0x5d8878]
faddp st(1)
jmp 0x420b66
fld dword [esp + 0x10]
mov eax, dword [esp + 0x20]
fiadd dword [esp + 0x2c]
cmp eax, 7
jl 0x420b8f
mov eax, dword [esp + 0x30]
test byte [eax + 0x38], 0x20
je 0x420b8f
fadd dword [0x5d8874]
fmul dword [0x5d8870]
fmul dword [0x5d8878]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x4209a0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043f020
fld dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
mov eax, dword [esp + 0x98]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x420d04
mov dword [esp + 0x24], esi
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ax, word [edx + ebx*2]
cmp ax, 0xffff
je 0x420ced
mov ecx, dword [esp + 0x38]
movzx eax, ax
xor edx, edx
mov dh, byte [ecx + eax*2 + 1]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov dl, byte [eax]
mov edi, edx
je 0x420c93
movzx edx, word [esi + 6]
lea eax, [esp + 0x34]
push eax
movzx eax, word [esi]
shl eax, 0x10
or edx, eax
push edx
mov dword [esp + 0x3c], 0
call fcn.0043f1b0
test eax, eax
mov eax, dword [esp + 0x34]
je 0x420c4a
movsx ecx, ax
add edi, ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x420c93
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x420c93
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x420c73
neg eax
mov ecx, eax
movsx eax, si
imul eax, ecx
movsx ecx, word [esp + 0x18]
cdq
idiv ecx
mov esi, dword [esp + 0x24]
movsx edx, ax
mov eax, dword [esp + 0x9c]
mov dword [eax], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x420ca1
neg eax
movsx ecx, word [esp + 0x18]
imul eax, edi
cdq
idiv ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, edx
cmp ecx, 7
jl 0x420ce9
mov edx, dword [esp + 0x30]
test byte [edx + 0x38], 0x20
je 0x420ce9
lea ecx, [eax + 0x13]
mov eax, 0x66666667
imul ecx
mov ecx, dword [esp + 0x14]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0x14], edx
jmp 0x420ced
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x420bf0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043f020
fild dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
fld qword [0x5d76b8]
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c