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

Disassembly:
sub esp, 0xd4
cmp dword [ebx + 0x58], 0
push ebp
push esi
push edi
jne 0x402420
mov eax, 0x80004005
pop edi
pop esi
pop ebp
add esp, 0xd4
ret 4
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x670]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xdc]
call eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x674]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xd8]
call eax
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x130]
push 0x112
push eax
call edx
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x160]
push 0
push eax
call edx
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
push 0x20
push edx
push 0
push eax
mov eax, dword [ecx + 0x14c]
call eax
mov edi, dword [esp + 0xe4]
lea esi, [esp + 0x48]
mov edx, edi
mov ecx, ebx
call fcn.00402340
fild dword [esp + 0x48]
fld dword [0x535500]
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc8]
fmul st(1), st(0)
fxch st(1)
push 1
push 0x16
fstp dword [esp + 0x40]
push eax
fimul dword [esp + 0x58]
fstp dword [esp + 0x48]
call edx
mov eax, dword [ebx + 0x60]
fld dword [esp + 0x38]
mov ecx, dword [eax]
fstp dword [esp + 0x48]
push 0x2000
lea edx, [esp + 0x10]
push edx
xor ebp, ebp
push ebp
push ebp
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov al, byte [edi]
test al, al
je 0x4029b5
fldz
fld dword [0x5353b8]
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
jmp 0x402502
fxch st(1)
add edi, 1
cmp al, 0xa
mov dword [esp + 0xe4], edi
jne 0x402545
mov ecx, dword [ebx + 0x68]
fstp st(0)
test ecx, ecx
fld dword [esp + 0x48]
fst dword [esp + 0x38]
fld dword [ebx + 0x7c]
fsub dword [ebx + 0x74]
fild dword [ebx + 0x68]
jge 0x402530
fadd dword [0x535468]
fmulp st(1)
fmul dword [0x535404]
fsubp st(2)
fxch st(1)
fst dword [esp + 0x3c]
jmp 0x4029a3
cmp al, 0x20
jl 0x402a0a
fstp st(1)
movsx ecx, al
lea edx, [ecx - 0x19]
shl ecx, 4
add ecx, ebx
shl edx, 4
fld dword [edx + ebx]
fld dword [ecx - 0x18c]
fld dword [ecx - 0x188]
fld dword [ecx - 0x184]
mov ecx, dword [ebx + 0x64]
test ecx, ecx
fstp dword [esp + 0x44]
fld1
fdiv dword [ebx + 0x6c]
fstp dword [esp + 0x30]
fld st(0)
fsub st(3)
fild dword [ebx + 0x64]
jge 0x402593
fadd dword [0x535468]
mov edx, dword [ebx + 0x68]
fmulp st(1)
test edx, edx
fmul dword [esp + 0x30]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fsub st(2)
fild dword [ebx + 0x68]
jge 0x4025b3
fadd dword [0x535468]
cmp al, 0x20
fmulp st(1)
fmul dword [esp + 0x30]
fstp dword [esp + 0x34]
je 0x4029fa
fxch st(5)
mov edi, dword [esp + 0xc]
fst dword [esp + 0xd4]
lea esi, [esp + 0x10]
fst dword [esp + 0xd8]
fxch st(4)
fst dword [esp + 0xdc]
fxch st(3)
fst dword [esp + 0x68]
mov eax, dword [esp + 0x68]
fld dword [esp + 0x3c]
mov dword [esp + 0x10], eax
fst dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0xd4]
fxch st(5)
fst dword [esp + 0x70]
mov edx, dword [esp + 0x70]
fxch st(3)
mov dword [esp + 0x14], ecx
fst dword [esp + 0x28]
mov ecx, dword [esp + 0xd8]
fld dword [esp + 0x44]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0xdc]
fxch st(3)
mov dword [esp + 0x20], ecx
fst dword [esp + 0xc8]
mov dword [esp + 0x1c], eax
fst dword [esp + 0xcc]
mov dword [esp + 0x24], edx
fxch st(4)
mov ecx, 8
fst dword [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
fxch st(1)
fst dword [esp + 0x50]
fld dword [esp + 0x34]
fadd st(6)
fst dword [esp + 0x34]
fstp dword [esp + 0x54]
fxch st(4)
fst dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
fxch st(3)
mov edi, dword [esp + 0xc]
fst dword [esp + 0x28]
mov eax, dword [esp + 0x50]
fxch st(2)
mov edx, dword [esp + 0x58]
fst dword [esp + 0x2c]
fxch st(3)
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xcc]
fst dword [esp + 0xb0]
fst dword [esp + 0xb4]
add edi, 0x20
fxch st(1)
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc8]
fst dword [esp + 0xb8]
fld dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xd0]
fadd st(5)
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], ecx
fst dword [esp + 0x30]
mov ecx, 8
lea esi, [esp + 0x10]
fstp dword [esp + 0x80]
mov dword [esp + 0x1c], eax
fxch st(5)
mov dword [esp + 0x24], edx
fst dword [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
fxch st(1)
mov edi, dword [esp + 0xc]
add edi, 0x20
mov dword [esp + 0xc], edi
fst dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
fxch st(6)
fst dword [esp + 0x28]
mov edx, dword [esp + 0x88]
fld dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb4]
fstp dword [esp + 0x2c]
fxch st(6)
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb0]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xb8]
fxch st(5)
fst dword [esp + 0x64]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x30]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x98]
mov eax, dword [esp + 0x98]
fld dword [esp + 0x34]
mov dword [esp + 0x24], edx
fstp dword [esp + 0x9c]
mov ecx, 8
fxch st(5)
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
fst dword [esp + 0xa0]
fxch st(6)
fst dword [esp + 0x28]
fxch st(3)
fst dword [esp + 0x2c]
fxch st(6)
fst dword [esp + 0x8c]
fst dword [esp + 0x90]
fxch st(5)
fst dword [esp + 0x94]
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x74]
mov edi, dword [esp + 0xc]
fxch st(1)
mov edx, dword [esp + 0xa0]
fst dword [esp + 0x78]
mov dword [esp + 0x14], ecx
fxch st(5)
mov ecx, dword [esp + 0x60]
fst dword [esp + 0x7c]
mov dword [esp + 0x10], eax
fxch st(3)
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x20], ecx
add edi, 0x20
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x7c]
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x94]
add edi, 0x20
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
fld dword [esp + 0x44]
mov ecx, 8
fstp dword [esp + 0x2c]
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
fxch st(2)
fst dword [esp + 0xbc]
fst dword [esp + 0xc0]
fxch st(2)
fst dword [esp + 0xc4]
fxch st(3)
fst dword [esp + 0xa4]
fld dword [esp + 0x34]
fstp dword [esp + 0xa8]
fxch st(2)
fst dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
fxch st(1)
mov edi, dword [esp + 0xc]
fstp dword [esp + 0x28]
mov eax, dword [esp + 0xa4]
fxch st(4)
mov edx, dword [esp + 0xac]
fstp dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xbc]
add edi, 0x20
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x20], ecx
add ebp, 2
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], eax
mov ecx, 8
lea esi, [esp + 0x10]
mov dword [esp + 0x24], edx
rep movsd dword es:[edi], dword [esi]
add dword [esp + 0xc], 0x20
lea eax, [ebp + ebp*2]
cmp eax, 0x126
jbe 0x402990
mov eax, dword [ebx + 0x60]
fstp st(3)
mov ecx, dword [eax]
fstp st(0)
mov edx, dword [ecx + 0x30]
fstp st(1)
push eax
fstp st(0)
call edx
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x118]
push ebp
push 0
push 4
push eax
call edx
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax]
push 0x2000
lea edx, [esp + 0x10]
push edx
push 0
push 0
push eax
mov eax, dword [ecx + 0x2c]
call eax
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
xor ebp, ebp
fldz
fld dword [0x5353b8]
fxch st(1)
fxch st(3)
fxch st(2)
fadd dword [esp + 0x40]
mov edi, dword [esp + 0xe4]
fst dword [esp + 0x38]
fxch st(1)
fxch st(2)
mov al, byte [edi]
test al, al
jne 0x402500
fstp st(3)
fstp st(1)
fstp st(0)
fstp st(0)
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push eax
call edx
test ebp, ebp
jbe 0x4029d7
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x118]
push ebp
push 0
push 4
push eax
call edx
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 0x670]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xd8]
call eax
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xd4
ret 4
fstp st(2)
fstp st(0)
fstp st(0)
fld dword [esp + 0x3c]
fxch st(2)
fxch st(1)
jmp 0x402990
fxch st(1)
jmp 0x4029a3