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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x60]
cmp eax, 1
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], ebp
jle 0x402cd1
push ebx
push esi
dec eax
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x24], eax
jmp 0x402700
mov ebx, dword [esp + 0x6c]
cmp byte [ebx + 0xc9], 3
lea esi, [ebx + edi]
ja 0x402cb5
mov edx, dword [ebx + 0xb4]
mov eax, dword [edx + edi]
mov dword [esi], eax
mov ecx, dword [edx + edi + 4]
mov dword [esi + 4], ecx
mov eax, dword [edx + edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edx + edi + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [edx + edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edx + edi + 0x14]
mov dword [esi + 0x14], ecx
mov eax, dword [edx + edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edx + edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov eax, dword [edx + edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edx + edi + 0x24]
mov dword [esi + 0x24], ecx
mov eax, dword [edx + edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edx + edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov eax, dword [ebx + 0xb0]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.004017e0
fld dword [esp + 0x44]
fadd dword [esi + 0xc]
fstp dword [esi + 0xc]
fld dword [esi + 0x1c]
fadd dword [esp + 0x48]
fstp dword [esi + 0x1c]
fld dword [esi + 0x2c]
fadd dword [esp + 0x4c]
fstp dword [esi + 0x2c]
cmp byte [ebp + 0x54], 0
je 0x4027b8
cmp byte [edx + 0xcb], 0
je 0x4027b8
add edx, 0xa0
push edx
call fcn.00401e40
fld dword [ebx + 0x9c]
sub esp, 0xc
fstp dword [esp + 8]
mov ecx, esi
fld dword [ebx + 0x98]
fstp dword [esp + 4]
fld dword [ebx + 0x94]
fstp dword [esp]
call fcn.00401d20
cmp byte [ebx + 0xcb], 0
je 0x4027f6
lea edx, [ebx + 0xa0]
push edx
mov ecx, esi
call fcn.00401dc0
cmp byte [ebx + 0xc9], 3
jne 0x402cb5
mov eax, dword [ebx + 0xb8]
mov ecx, dword [eax + 0x18]
mov ebp, dword [eax + 0x14]
mov ebx, dword [eax + 0xc]
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.00401f00
fld dword [ebx]
fsub dword [eax]
lea ecx, [esp + 0x2c]
fstp dword [esp + 0x50]
fld dword [ebx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x54]
fld dword [ebx + 8]
fsub dword [eax + 8]
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, esi
fstp dword [esp + 0x60]
call fcn.00401860
fld dword [esp + 0x30]
fld dword [esp + 0x2c]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x34]
fmul st(0), st(0)
fld dword [esp + 0x70]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
call fcn.00404600
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp dword [esp + 0x70]
fld dword [esp + 0x10]
call fcn.00404600
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
sub esp, 8
fstp dword [esp + 0x7c]
mov ecx, esi
fld dword [esp + 0x78]
fld1
fld st(0)
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fdiv dword [esp + 0x7c]
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fmul dword [esp + 0x38]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.00401730
fld dword [esp + 0x1c]
sub esp, 8
fld st(0)
fmul dword [esp + 0x78]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fchs
fmulp st(1)
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fstp dword [esp]
call fcn.00401680
mov edx, dword [ebp + 0xb0]
mov ecx, dword [esp + 0x14]
fld dword [edx]
mov eax, dword [ecx + 0xb0]
fstp dword [esp + 0x20]
fld dword [eax]
fstp dword [esp + 0x1c]
fld dword [esp + 0x74]
fld dword [esp + 0x1c]
fld st(0)
fld dword [esp + 0x20]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fcomp st(3)
fnstsw ax
test ah, 0x41
jne 0x402c56
fld st(0)
fld st(0)
fmulp st(1)
fsubr dword [esp + 0x10]
fstp dword [esp + 0x74]
fld st(1)
fmul st(0), st(0)
fstp dword [esp + 0x70]
fxch st(1)
fadd st(0), st(0)
fstp dword [esp + 0x18]
fld dword [esp + 0x70]
fld st(0)
fld dword [esp + 0x74]
fld st(0)
faddp st(2)
fld dword [esp + 0x18]
fld st(0)
fmulp st(6)
fxch st(2)
fdivrp st(5)
fxch st(4)
fstp dword [esp + 0x74]
fxch st(3)
fsubrp st(1)
fxch st(2)
fmulp st(1)
fdivp st(1)
fstp dword [esp + 0x70]
fld dword [0x4143ac]
fld dword [esp + 0x74]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4029cf
fstp st(0)
fst dword [esp + 0x74]
fld dword [esp + 0x74]
fld dword [0x415d88]
jmp 0x4029ea
fld dword [0x415d88]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4029ea
fstp st(1)
fst dword [esp + 0x74]
fld dword [esp + 0x74]
fxch st(1)
fld dword [esp + 0x70]
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x402a03
fstp st(1)
fstp st(0)
fxch st(1)
fstp dword [esp + 0x70]
jmp 0x402a1a
fstp st(3)
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x402a18
fxch st(1)
fstp dword [esp + 0x70]
jmp 0x402a1a
fstp st(1)
test byte [ecx + 0xc9], 1
fmul st(0), st(0)
fld1
fsubrp st(1)
jne 0x402a65
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.00404600
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fchs
fstp dword [esp + 0x18]
fld dword [esp + 0x70]
fmul st(0), st(0)
fld1
fsubrp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.00404600
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
jmp 0x402a9f
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.00404600
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x70]
fmul st(0), st(0)
fld1
fsubrp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.00404600
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fchs
fstp dword [esp + 0x10]
sub esp, 8
fld dword [esp + 0x7c]
mov ecx, esi
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.00401680
mov ecx, dword [esi]
fld dword [esp + 0x70]
mov dword [edi + ebp], ecx
mov edx, dword [esi + 4]
mov dword [edi + ebp + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + ebp + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + ebp + 0xc], ecx
mov edx, dword [esi + 0x10]
mov dword [edi + ebp + 0x10], edx
mov eax, dword [esi + 0x14]
mov dword [edi + ebp + 0x14], eax
mov ecx, dword [esi + 0x18]
lea ebx, [edi + ebp + 0x10]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0x1c]
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0x20]
mov dword [edi + ebp + 0x20], ecx
mov edx, dword [esi + 0x24]
lea eax, [edi + ebp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x28]
sub esp, 8
mov dword [eax + 8], ecx
fstp dword [esp + 4]
mov edx, dword [esi + 0x2c]
fld dword [esp + 0x18]
mov ecx, esi
fstp dword [esp]
mov dword [esp + 0x7c], eax
mov dword [eax + 0xc], edx
call fcn.00401680
fld dword [esp + 0x10]
fld dword [esp + 0x70]
call fcn.00403faa
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
mov eax, dword [esp + 0x74]
fchs
fstp dword [ebp + 0x98]
fld dword [esp + 0x1c]
fld dword [esp + 0x20]
fxch st(1)
fld dword [esi]
mov ecx, dword [esp + 0x14]
fmul st(2)
fadd dword [esi + 0xc]
fstp dword [esp + 0x38]
fld dword [esi + 0x10]
fmul st(2)
fadd dword [esi + 0x1c]
fstp dword [esp + 0x3c]
fld dword [esi + 0x20]
fmulp st(2)
fld dword [esi + 0x2c]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fstp dword [edi + ebp + 0xc]
fld dword [esp + 0x3c]
fstp dword [edi + ebp + 0x1c]
fld dword [esp + 0x40]
fstp dword [edi + ebp + 0x2c]
test byte [ecx + 0xc9], 0x10
jne 0x402caf
mov edx, dword [edi + ebp]
mov dword [ecx + edi], edx
mov edx, dword [edi + ebp + 4]
lea esi, [ecx + edi]
mov dword [esi + 4], edx
mov edx, dword [edi + ebp + 8]
mov dword [esi + 8], edx
mov edx, dword [edi + ebp + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [ebx]
mov dword [esi + 0x10], edx
mov edx, dword [ebx + 4]
mov dword [esi + 0x14], edx
mov edx, dword [ebx + 8]
mov dword [esi + 0x18], edx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x1c], edx
mov edx, dword [eax]
mov dword [esi + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x24], edx
mov edx, dword [eax + 8]
mov dword [esi + 0x28], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x2c], eax
fld dword [esi]
fmul st(1)
sub esp, 0xc
fadd dword [esi + 0xc]
fstp dword [esi + 0xc]
fld st(0)
fmul dword [esi + 0x10]
fadd dword [esi + 0x1c]
fstp dword [esi + 0x1c]
fmul dword [esi + 0x20]
fadd dword [esi + 0x2c]
fstp dword [esi + 0x2c]
fld dword [ecx + 0x9c]
fstp dword [esp + 8]
fld dword [ecx + 0x98]
fstp dword [esp + 4]
fld dword [ecx + 0x94]
mov ecx, esi
fstp dword [esp]
call fcn.00401d20
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xcb], 0
je 0x402cb1
add eax, 0xa0
push eax
mov ecx, esi
call fcn.00401dc0
jmp 0x402cb1
mov eax, dword [esi]
fstp st(2)
mov dword [edi + ebp], eax
mov ecx, dword [esi + 4]
mov dword [edi + ebp + 4], ecx
mov edx, dword [esi + 8]
mov dword [edi + ebp + 8], edx
mov eax, dword [esi + 0xc]
mov dword [edi + ebp + 0xc], eax
mov ecx, dword [esi + 0x10]
mov dword [edi + ebp + 0x10], ecx
mov edx, dword [esi + 0x14]
lea ebx, [edi + ebp + 0x10]
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0x1c]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 0x20]
lea eax, [edi + ebp + 0x20]
mov dword [eax], edx
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x28]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0xc], ecx
jmp 0x402b59
fstp st(0)
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x28]
movzx ecx, word [ebp + 0x50]
add ebx, ecx
sub dword [esp + 0x24], 1
mov dword [esp + 0x6c], ebx
jne 0x402700
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x58
ret 0xc