Function at 0x421980
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 + 0x40], ebx
mov dword [esp + 0x5c], 0
jle 0x421d2f
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
add ecx, 0x888
sub edx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 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 + 0x58], eax
jne 0x4219e9
mov eax, dword [ecx]
cmp dword [edx + eax*4], 0
je 0x421d09
mov eax, dword [ecx - 0x400]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov edi, dword [eax + edx]
add ecx, ecx
add ecx, ecx
mov esi, dword [ecx + edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x68], edi
lea edi, [edi + edx*4]
lea edx, [esi + edx*4]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x24]
mov eax, dword [eax + edx]
mov ecx, dword [ecx + edx]
mov edx, dword [ebp + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0xfc]
fld qword [eax*8 + 0x4c48c8]
mov eax, dword [ecx + edx*4 + 0x138]
fstp dword [esp + 0x70]
mov dword [esp + 0x38], edi
fld qword [eax*8 + 0x4c48c8]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
fstp dword [esp + 0x44]
cmp dword [eax + 0x1f8], 0
mov dword [esp + 0x48], esi
je 0x421a6c
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 + 0x40], 0x3e8
mov eax, dword [ecx + ebx*4 + 0x84]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ebx + eax*4], 1
jle 0x421abc
mov ecx, dword [ecx + edx*4 + 0x138]
fld qword [ecx*8 + 0x4c4910]
fstp dword [esp + 0x44]
mov ebx, dword [edi]
xor edx, edx
test ebx, ebx
mov dword [esp + 0x58], edx
jle 0x421d05
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x18], 0
fldz
fstp dword [esp + 0x1c]
jle 0x421c27
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
lea ebx, [ecx + esi]
mov ecx, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x7c], eax
mov eax, ecx
mov ecx, dword [esp + 0x6c]
sub eax, esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
sub eax, esi
sub edi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
sub ecx, esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], eax
cmp edx, dword [ebp + 0x2c]
jge 0x421d61
cmp edx, dword [esp + 0x54]
jl 0x421b62
mov edx, dword [esp + 0x28]
fld dword [edx + ebx]
fabs
fld dword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x421b60
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jnp 0x421b8f
jmp 0x421b62
fstp st(0)
mov eax, dword [esp + 0x28]
fld dword [eax + ebx]
fabs
fld dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x421d36
fld dword [ebx]
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x421d38
mov edx, dword [esp + 0x74]
add ecx, ebx
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [edx + ebx]
mov edx, dword [esp + 0x7c]
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x38]
fld dword [ecx + edx]
add edi, ebx
push edi
mov edi, dword [eax]
push ecx
mov ecx, dword [esp + 0x88]
fstp dword [esp]
mov esi, dword [eax + ecx]
call fcn.00421090
mov edx, dword [esp + 0x38]
fld dword [edx + ebx]
lea esi, [edx + ebx]
fadd qword [0x498520]
add esp, 4
fstp qword [esp]
call fcn.00472a40
fcomp qword [0x49deb8]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x421c02
fld dword [esi]
fmul st(0), st(0)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x34], 4
add edx, 1
add ebx, 4
sub dword [esp + 0x50], 1
mov dword [esp + 0x4c], edx
jne 0x421b2a
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x1f8], 0
je 0x421cdf
cmp dword [esp + 0x18], 0
mov dword [esp + 0x50], 0
jle 0x421cdf
mov ebx, dword [esp + 0x3c]
mov edi, edi
fld dword [esp + 0x1c]
mov edx, dword [edi + 4]
fcomp qword [edx + 0x208]
fnstsw ax
test ah, 1
jne 0x421cdf
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edi, dword [ebx + ecx]
cmp edi, dword [ebp + 0x2c]
jge 0x421cc4
cmp edi, dword [esp + 0x54]
jl 0x421cc4
mov edx, dword [esp + 0x38]
fld dword [edx + edi*4]
sub esp, 8
fadd qword [0x498520]
fstp qword [esp]
call fcn.00472a40
fcomp qword [0x49deb8]
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x421cc4
push ecx
mov ecx, dword [esp + 0x3c]
fld dword [ecx + edi*4]
fstp dword [esp]
call fcn.0041deb0
fstp dword [ecx + edi*4]
add esp, 4
fld dword [esp + 0x1c]
fsub qword [0x49cd78]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov edi, dword [ebp + 0x10]
add eax, 1
add ebx, 4
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
jl 0x421c50
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [edi]
add edx, eax
add eax, eax
add eax, eax
add ecx, eax
cmp edx, ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], ecx
jl 0x421ad2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 0x14]
add dword [esp + 0x24], 4
add eax, 1
add ecx, 4
cmp eax, dword [edx + 0x484]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], ecx
jl 0x4219c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fld dword [ebx]
mov eax, dword [esp + 0x28]
sub esp, 8
fstp dword [esp + 4]
add ecx, ebx
fld dword [eax + ebx]
lea edx, [edi + ebx]
fstp dword [esp]
call fcn.00420fd0
mov ecx, dword [esp + 0x38]
add esp, 8
jmp 0x421c06
fldz
fst dword [edi + ebx]
fstp dword [ecx + ebx]
jmp 0x421c06