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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x484], 0
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], 0
jle 0x420cdb
mov eax, dword [ebp + 0x20]
fldz
mov edx, dword [ebp + 0x1c]
add ecx, 0x888
sub edx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], edx
mov eax, dword [ecx - 0x400]
mov edx, dword [ebp + 0x28]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
mov dword [esp + 0x48], eax
jne 0x42092b
mov eax, dword [ecx]
cmp dword [edx + eax*4], 0
je 0x420cb5
mov eax, dword [ecx - 0x400]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov esi, dword [eax + edx]
add ecx, ecx
add ecx, ecx
mov edi, dword [ecx + edx]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x5c], esi
lea esi, [esi + edx*4]
lea edx, [edi + edx*4]
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 0x24]
mov eax, dword [eax + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0xfc]
fld qword [eax*8 + 0x4941a8]
mov eax, dword [ecx + edx*4 + 0x138]
fstp dword [esp + 0x6c]
mov dword [esp + 0x38], esi
fld qword [eax*8 + 0x4941a8]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
fstp dword [esp + 0x40]
cmp dword [eax + 0x1f8], 0
mov dword [esp + 0x44], edi
je 0x4209ae
mov ebx, dword [eax + 0x200]
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov ebx, eax
shl ebx, 4
sub ebx, eax
add ebx, edx
cmp dword [esp + 0x3c], 0x3e8
mov eax, dword [ecx + ebx*4 + 0x84]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov dword [eax], 1
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [ebx + eax*4], 1
jle 0x4209fe
mov ecx, dword [ecx + edx*4 + 0x138]
fld qword [ecx*8 + 0x4941f0]
fstp dword [esp + 0x40]
mov ebx, dword [esi]
xor ecx, ecx
mov dword [esp + 0x24], ecx
test ebx, ebx
jle 0x420cb1
cmp dword [esp + 0x18], 0
fst dword [esp + 0x1c]
jle 0x420bd5
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x38]
mov edx, eax
mov dword [esp + 0x20], ecx
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov eax, dword [esp + 0x5c]
sub eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
sub edx, edi
sub ebx, edi
sub eax, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x48], eax
jmp 0x420a68
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
cmp eax, dword [ebp + 0x2c]
jge 0x420bac
cmp eax, dword [esp + 0x4c]
jl 0x420aa4
mov eax, dword [esp + 0x30]
fld dword [eax + esi]
fabs
fld dword [esp + 0x40]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x420aa2
fld dword [esi]
fabs
fcompp
fnstsw ax
test ah, 5
jnp 0x420ad1
jmp 0x420aa4
fstp st(0)
mov eax, dword [esp + 0x30]
fld dword [eax + esi]
fabs
fld dword [esp + 0x6c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x420b82
fld dword [esi]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x420b84
lea eax, [edx + esi]
mov edi, dword [eax + ecx]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, edi
setg cl
mov dword [esp + 0x74], eax
sub eax, edi
cdq
xor eax, edx
sub eax, edx
dec ecx
mov edx, ecx
not edx
and edx, dword [esp + 0x74]
and ecx, edi
or edx, ecx
mov dword [esp + 0x70], eax
fld dword [edx*4 + 0x494238]
mov edx, dword [esp + 0x78]
xor ecx, ecx
mov eax, 0x1f
sub eax, dword [esp + 0x70]
sets cl
sub esp, 8
dec ecx
and ecx, eax
fld dword [ecx*4 + 0x494638]
mov eax, dword [esp + 0x34]
fadd qword [0x44a2e0]
mov ecx, dword [edx + eax]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x7c]
fmul dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fmul dword [ecx + edx*4]
fstp dword [ebx + esi]
fstp dword [eax + esi]
fld dword [ebx + esi]
fadd qword [0x44a0a8]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fldz
mov edi, dword [esp + 0x4c]
fucompp
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x420bb6
fld dword [ebx + esi]
fmul st(0), st(0)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
jmp 0x420bb6
fstp st(1)
mov eax, dword [esp + 0x30]
fstp st(0)
fld dword [esi]
mov ecx, dword [esp + 0x34]
sub esp, 8
fstp dword [esp + 4]
add ecx, esi
fld dword [eax + esi]
lea edx, [ebx + esi]
fstp dword [esp]
call fcn.0041ff70
add esp, 8
jmp 0x420bb6
mov ecx, dword [esp + 0x34]
fst dword [ebx + esi]
fstp dword [ecx + esi]
fldz
mov eax, 1
add dword [esp + 0x20], eax
add esi, 4
sub dword [esp + 0x48], eax
jne 0x420a60
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp dword [edx + 0x1f8], 0
je 0x420c9f
cmp dword [esp + 0x18], 0
mov dword [esp + 0x48], 0
jle 0x420c9f
lea ebx, [ecx*4]
nop
mov eax, dword [esi + 4]
fld dword [esp + 0x1c]
fcomp qword [eax + 0x208]
fnstsw ax
test ah, 1
jne 0x420c9f
mov ecx, dword [esp + 0x2c]
fstp st(0)
mov edx, dword [ecx]
mov esi, dword [ebx + edx]
cmp esi, dword [ebp + 0x2c]
jge 0x420c80
cmp esi, dword [esp + 0x4c]
jl 0x420c80
mov eax, dword [esp + 0x38]
fld dword [eax + esi*4]
sub esp, 8
fadd qword [0x44a0a8]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fldz
add esp, 8
fucompp
fnstsw ax
test ah, 0x44
jp 0x420c80
mov eax, dword [esp + 0x38]
fld dword [eax + esi*4]
fstp dword [esp + 0x7c]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x7c]
fsub qword [0x44a2e0]
and ecx, 0xbf800000
or ecx, 0x3f800000
mov dword [eax + esi*4], ecx
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
fldz
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 4
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x18]
jl 0x420c00
add ecx, dword [esp + 0x18]
mov ebx, dword [esi]
mov dword [esp + 0x24], ecx
cmp ecx, ebx
jl 0x420a0e
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov edx, dword [ebp + 0x14]
add dword [esp + 0x2c], 4
inc eax
add ecx, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ecx
cmp eax, dword [edx + 0x484]
jl 0x420909
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret