Function at 0x427140
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 0x42715f
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x42716a
call fcn.0042b5f0
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [ebp + 0x24]
cmp eax, 1
jne 0x4271a0
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 0x4276a2
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 0x4271d4
fld qword [0x68a6c0]
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], 0x7fffffff
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.004b5f20
test byte [edi + 0x38], 4
mov eax, dword [esp + 0x70]
je 0x427232
movzx edx, word [edi + 0x36]
lea eax, [eax + edx*2]
jmp 0x427238
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 0x4271c1
cmp ebx, 8
mov dword [esp + 0x28], 0
jl 0x427292
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
test al, al
je 0x427292
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 0x4272c2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x34]
test eax, eax
je 0x4272c2
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.0042d280
mov dword [esp + 0x2c], eax
cmp byte [edi + 0x7e], 0x4b
mov dword [esp + 0x18], 0x400
jne 0x4272d8
mov dword [esp + 0x18], 0x5000
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x427550
push edi
call fcn.00484a90
add esp, 4
test eax, eax
mov dword [esp + 0x44], eax
je 0x427550
mov eax, dword [esp + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], 0
jle 0x427532
mov dword [esp + 0x24], esi
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov di, word [ecx + ebx*2]
cmp di, 0xffff
je 0x427517
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 0x4273df
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.00447f00
test eax, eax
mov eax, dword [esp + 0x34]
je 0x42739a
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 0x4273df
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x4273df
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x4273c3
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 0x4273ed
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.004ae690
mov ecx, eax
call fcn.004852b0
cmp eax, 1
jne 0x4274e2
test di, di
je 0x4274e2
mov edi, dword [esp + 0x24]
cmp word [edi], 0x20
je 0x4274e2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x38]
test eax, eax
jge 0x42744e
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.00486040
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 [0x68bf20]
faddp st(1)
jmp 0x4274e6
fld dword [esp + 0x10]
mov eax, dword [esp + 0x20]
fiadd dword [esp + 0x2c]
cmp eax, 7
jl 0x42750f
mov eax, dword [esp + 0x30]
test byte [eax + 0x38], 0x20
je 0x42750f
fadd dword [0x68bf1c]
fmul dword [0x68bf18]
fmul dword [0x68bf20]
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 0x427320
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.006058d0
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 0x427684
mov dword [esp + 0x24], esi
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ax, word [edx + ebx*2]
cmp ax, 0xffff
je 0x42766d
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 0x427613
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.00447f00
test eax, eax
mov eax, dword [esp + 0x34]
je 0x4275ca
movsx ecx, ax
add edi, ecx
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x427613
mov edx, dword [esp + 0x98]
dec edx
cmp ebx, edx
jne 0x427613
neg eax
mov esi, eax
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x38]
test eax, eax
jge 0x4275f3
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 0x427621
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 0x427669
mov edx, dword [esp + 0x30]
test byte [edx + 0x38], 0x20
je 0x427669
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 0x42766d
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
inc ebx
add esi, 6
cmp ebx, eax
mov dword [esp + 0x24], esi
jl 0x427570
mov eax, dword [esp + 0x1c]
push eax
call fcn.006058d0
fild dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c
fld qword [0x68a6c0]
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x1c