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

Disassembly:
sub esp, 0x5c
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
lea ebp, [esi + 0x18]
mov dword [ecx], ecx
mov ecx, dword [ebp + 4]
mov dword [ecx + 4], ecx
cmp eax, dword [ebp + 4]
push edi
mov dword [ebp + 8], 0
je 0x4029b6
mov edi, dword [eax]
push eax
call fcn.0074c96f
add esp, 4
cmp edi, dword [ebp + 4]
mov eax, edi
jne 0x4029a4
cmp byte [esp + 0x74], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 4]
lea edi, [esi + 0xc]
mov dword [edi + 4], edx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esp + 0xc], edi
mov dword [esi + 8], eax
je 0x402a1f
push esi
mov ecx, 0x991428
call fcn.00405260
test eax, eax
jne 0x402a06
push esi
push esi
call fcn.00401d60
add esp, 8
push edi
mov ecx, 0x991428
call fcn.00405260
test eax, eax
jne 0x402a1f
push edi
push edi
call fcn.00401d60
add esp, 8
push esi
push edi
mov ecx, 0x991428
call fcn.00407a30
test al, al
mov byte [esp + 0x74], al
je 0x402d13
mov ecx, dword [0x991488]
mov eax, dword [ecx]
push ebx
mov ebx, 0x991484
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
lea ecx, [ecx]
test ebx, ebx
mov esi, dword [0x991488]
je 0x402a62
cmp ebx, 0x991484
je 0x402a67
call fcn.0074ca9e
cmp dword [esp + 0x18], esi
je 0x402c9f
test ebx, ebx
jne 0x402a7a
call fcn.0074ca9e
mov edx, dword [esp + 0x18]
cmp edx, dword [ebx + 4]
jne 0x402a88
call fcn.0074ca9e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], 0
fld dword [eax + 0x24]
fstp dword [esp + 0x24]
fld dword [eax + 0x28]
fstp dword [esp + 0x28]
fld dword [eax + 0x2c]
fstp dword [esp + 0x2c]
je 0x402c5b
mov ecx, dword [eax + 0x58]
push 0
lea esi, [eax + 0x44]
push 0x7958c8
push ecx
push 0
mov ecx, esi
call fcn.00401ff0
test eax, eax
je 0x402c5b
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, 0x991428
call fcn.00402760
mov edi, dword [esp + 0x1c]
test edi, edi
mov ebx, dword [0x99142c]
je 0x402af3
cmp edi, 0x991428
je 0x402af8
call fcn.0074ca9e
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x402c57
test edi, edi
jne 0x402b0d
call fcn.0074ca9e
cmp esi, dword [edi + 4]
jne 0x402b21
call fcn.0074ca9e
cmp esi, dword [edi + 4]
jne 0x402b21
call fcn.0074ca9e
fld dword [esi + 0x38]
fsub dword [esi + 0x2c]
fstp dword [esp + 0x70]
fld dword [esi + 0x3c]
fsub dword [esi + 0x30]
fstp dword [esp + 0x74]
fld dword [esi + 0x34]
fsub dword [esi + 0x28]
fstp dword [esp + 0x3c]
fld dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [esp + 0x74]
fstp dword [esp + 0x44]
cmp esi, dword [edi + 4]
jne 0x402b59
call fcn.0074ca9e
fld dword [esp + 0x28]
lea eax, [esp + 0x3c]
fsub dword [esi + 0x2c]
push eax
fstp dword [esp + 0x74]
fld dword [esp + 0x30]
fsub dword [esi + 0x30]
fstp dword [esp + 0x78]
fld dword [esp + 0x28]
fsub dword [esi + 0x28]
fstp dword [esp + 0x34]
fld dword [esp + 0x74]
fst dword [esp + 0x38]
fld dword [esp + 0x78]
fst dword [esp + 0x3c]
fld dword [esp + 0x34]
fstp dword [esp + 0x64]
fxch st(1)
fstp dword [esp + 0x68]
fstp dword [esp + 0x6c]
call dword [0x97e20c]
lea ecx, [esp + 0x34]
push ecx
call dword [0x97e20c]
add esp, 8
lea ecx, [esp + 0x60]
call fcn.00401b00
fld dword [esp + 0x34]
cmp esi, dword [edi + 4]
fld dword [esp + 0x40]
fld st(0)
fmulp st(2)
fld dword [esp + 0x30]
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esp + 0x38]
fld dword [esp + 0x44]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x4c]
fmulp st(1)
fstp dword [esp + 0x50]
jne 0x402c1e
call fcn.0074ca9e
fld dword [esi + 0x28]
fadd dword [esp + 0x48]
fstp dword [esp + 0x54]
mov edx, dword [esp + 0x54]
fld dword [esi + 0x2c]
mov dword [esp + 0x24], edx
fadd dword [esp + 0x4c]
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
fld dword [esi + 0x30]
mov dword [esp + 0x28], eax
fadd dword [esp + 0x50]
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 0x14]
mov esi, dword [ebp + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
push eax
push esi
mov ecx, ebp
call fcn.004021c0
push 1
mov ecx, ebp
mov edi, eax
call fcn.004366f0
mov dword [esi + 4], edi
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x18]
mov dword [ecx], edi
cmp esi, dword [ebx + 4]
jne 0x402c90
call fcn.0074ca9e
mov edx, dword [esi]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
jmp 0x402a50
mov eax, dword [ebp + 4]
mov esi, dword [eax]
cmp esi, eax
pop ebx
jne 0x402cae
call fcn.0074ca9e
fld dword [edi]
fsub dword [esi + 8]
fstp dword [esp + 0x50]
fld dword [edi + 4]
fsub dword [esi + 0xc]
fstp dword [esp + 0x54]
fld dword [edi + 8]
fsub dword [esi + 0x10]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fld dword [esp + 0x50]
fld dword [esp + 0x58]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fcomp dword [0x7958c4]
fnstsw ax
test ah, 5
jp 0x402d0f
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
push eax
push ebp
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00402380
mov al, byte [esp + 0x74]
pop edi
pop esi
pop ebp
add esp, 0x5c
ret 0xc