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

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x8c7]
mov dword [esp + 0x40], ebx
test al, al
je 0x40326a
fld dword [esi + 0x8c9]
fmul dword [0x4518b4]
fld st(0)
fsin
fstp dword [esp + 0x24]
fcos
fcom dword [0x4519a4]
fnstsw ax
test ah, 0x41
jne 0x4028bb
fstp st(0)
fld dword [0x4519a4]
mov eax, dword [esp + 0x24]
fst dword [esp + 0x2c]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov al, byte [0x463e90]
test al, al
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
je 0x402d08
mov dword [esp + 0x10], 0x3f800000
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x3f800000
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], 0x3f800000
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x38], eax
call fcn.0041565d
fld dword [esp + 0x44]
fmul dword [0x4518b0]
xor edi, edi
mov dword [esp + 0x24], edi
fstp dword [esp + 0x10]
fld dword [esp + 0x48]
fmul dword [0x4518b0]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [0x463c84]
fstp dword [esp + 0x14]
fld dword [esp + 0x4c]
fmul dword [0x4518b0]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], ecx
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 4]
test ecx, ecx
jbe 0x402bb9
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x445]
push 0
mov eax, dword [ecx + edi*4]
lea ecx, [esp + 0x40]
push ecx
push 0
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x2c]
mov edx, dword [0x463c84]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], 0
mov eax, dword [edx]
mov edx, dword [ecx + eax + 0xc]
test edx, edx
jbe 0x402b89
lea edx, [ebx + ebx*2]
mov ecx, 4
shl edx, 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
jmp 0x4029e0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
xor ebx, ebx
xor ebp, ebp
mov eax, dword [edi + eax + 0x10]
xor edi, edi
mov di, word [ecx + eax - 4]
mov bx, word [ecx + eax - 2]
mov bp, word [ecx + eax]
mov al, byte [0x463e90]
test al, al
je 0x402b0c
mov al, byte [esi + 0x8c7]
test al, al
je 0x402b0c
mov eax, dword [esi + 0x9fa]
mov ecx, dword [esi + 0x9f6]
add eax, edx
add ecx, edx
mov dword [esp + 0x58], ecx
fld dword [eax + 8]
fld dword [ecx + 8]
mov ecx, dword [esi + 0x9f2]
add ecx, edx
mov edx, dword [esp + 0x58]
fld dword [ecx + 8]
fld dword [eax + 4]
fld dword [edx + 4]
fld dword [ecx + 4]
fld dword [eax]
fld dword [ecx]
mov edx, dword [edx]
lea ecx, [esp + 0x68]
fstp dword [esp + 0x68]
mov eax, edx
mov dword [esp + 0x54], edx
fstp dword [esp + 0x70]
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x5c]
fstp dword [esp + 0x78]
push ecx
lea eax, [esp + 0x2c]
fstp dword [esp + 0x80]
push edx
push eax
fstp dword [esp + 0x8c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x90], 0
fstp dword [esp + 0x94]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
fstp dword [esp + 0x98]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
fstp dword [esp + 0x9c]
mov dword [esp + 0xb0], 0x3f800000
call fcn.00415a49
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0041565d
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
inc ecx
add eax, 0xc
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
lea eax, [edi + edi*4]
lea ecx, [esp + 0x28]
push ecx
lea edi, [edi + eax*2]
shl edi, 2
call fcn.00402810
mov edx, dword [esp + 0x40]
add esp, 4
mov dword [edi + edx + 0x18], eax
mov ecx, dword [esp + 0x3c]
lea eax, [ebx + ebx*4]
mov edx, dword [edi + ecx + 0x18]
lea eax, [ebx + eax*2]
mov ebx, dword [esp + 0x38]
shl eax, 2
add ebx, 6
mov dword [eax + ecx + 0x18], edx
lea ecx, [ebp + ebp*4]
mov dword [esp + 0x38], ebx
lea edx, [ebp + ecx*2]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + ecx + 0x18]
mov dword [ecx + edx*4 + 0x18], eax
mov edx, dword [0x463c84]
mov ecx, dword [esp + 0x50]
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
add ecx, 3
mov edi, dword [edx + eax + 0xc]
mov dword [esp + 0x50], ecx
cmp ecx, edi
jb 0x4029d8
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov eax, dword [esi + 0x445]
mov eax, dword [eax + edi*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [0x463c84]
mov ecx, dword [esp + 0x20]
inc edi
add ecx, 0x44
mov eax, dword [edx + 4]
mov dword [esp + 0x24], edi
cmp edi, eax
mov dword [esp + 0x20], ecx
jb 0x402989
mov eax, dword [esi + 0xec]
push 0
push 0xb
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 0x18
push 1
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 2
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 0
push 3
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 0xb
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 4
push 1
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 3
push 2
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 3
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 0xb
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov al, byte [0x463e90]
cmp al, 1
jne 0x402c96
mov eax, dword [esi + 0xec]
push 4
push 1
push 2
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
jmp 0x402caf
cmp al, 2
jne 0x402caf
mov eax, dword [esi + 0xec]
push 8
push 1
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 2
push 2
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 3
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 4
push 2
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 5
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
jmp 0x402d9b
mov eax, dword [esi + 0xec]
push 4
push 1
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 2
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 0
push 3
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 4
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 5
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 1
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 1
push 2
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
fld dword [esi + 0x8c9]
fsub dword [0x4518ac]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
lea eax, [esi + 0x951]
fabs
fmul dword [0x4518a8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
fsubr dword [0x4518a4]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xec]
lea ecx, [esi + 0x8cd]
mov edx, dword [eax]
push ecx
fstp dword [esp + 0x24]
push eax
call dword [edx + 0xc4]
mov cl, byte [esi + 0x9e1]
cmp cl, 6
jne 0x402e02
fld dword [esp + 0x20]
fmul dword [0x451994]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], 0x3f800000
mov eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov al, byte [esi + 0x8c8]
test al, al
mov dword [esp + 0x18], edx
jne 0x402e47
lea eax, [esi + 0x9e2]
lea edx, [esi + 0x935]
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov edi, dword [eax + 8]
mov dword [edx + 8], edi
mov eax, dword [eax + 0xc]
jmp 0x402e69
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x935]
mov dword [esi + 0x935], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [0x4518a0]
mov dword [edx + 0xc], eax
fcom dword [0x45189c]
fnstsw ax
test ah, 0x41
jne 0x402e8b
fstp st(0)
fld dword [0x45189c]
test cl, cl
jne 0x402f28
fld dword [esi + 0x8c9]
fcomp dword [0x4518ac]
fnstsw ax
test ah, 1
je 0x402eea
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fmul dword [0x451994]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [esi + 0x915]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0x3f800000
fstp dword [esp + 0x18]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x4030ba
fst dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
fstp dword [esp + 0x14]
lea eax, [esi + 0x915]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0x3f800000
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x4030ba
cmp cl, 1
jne 0x402f67
fst dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x915]
fst dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov dword [esp + 0x1c], 0x3f800000
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x4030ba
cmp cl, 2
jne 0x402fb0
fstp dword [esp + 0x10]
fld dword [esp + 0x20]
fmul dword [0x451994]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x915]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x3f800000
fstp dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
jmp 0x4030ba
cmp cl, 3
jne 0x402fef
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x915]
fstp dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [eax], ecx
mov ecx, edx
mov dword [esp + 0x1c], 0x3f800000
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x4030ba
cmp cl, 4
jne 0x403032
fst dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x14]
lea ecx, [esi + 0x915]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0x3f800000
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
jmp 0x4030ba
cmp cl, 5
jne 0x403072
fst dword [esp + 0x10]
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x915]
fstp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [ecx], edx
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
jmp 0x4030ba
cmp cl, 6
jne 0x4030b8
mov ecx, dword [esp + 0x20]
lea edx, [esi + 0x915]
fld st(0)
fmul dword [0x451994]
mov eax, ecx
mov dword [esp + 0x10], ecx
mov dword [edx], eax
mov dword [esp + 0x1c], 0x3f800000
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x4030ba
fstp st(0)
mov al, byte [0x463e90]
test al, al
jne 0x40310e
mov eax, dword [esi + 0xec]
lea ecx, [esi + 0x911]
push ecx
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0xcc]
mov eax, dword [esi + 0xec]
lea ecx, [esi + 0x979]
push ecx
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0xcc]
mov eax, dword [esi + 0xec]
push 1
push 0x89
push eax
mov edx, dword [eax]
call dword [edx + 0xe4]
jmp 0x403328
mov eax, dword [esi + 0x915]
mov ecx, dword [esi + 0x919]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x921]
fld dword [esp + 0x10]
fcomp dword [0x45189c]
mov edx, dword [esi + 0x91d]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fnstsw ax
test ah, 1
jne 0x40314e
mov ebp, 0xff
jmp 0x40317a
fld dword [esp + 0x10]
fcomp dword [0x4519a4]
fnstsw ax
test ah, 0x41
je 0x403163
xor ebp, ebp
jmp 0x40317a
fld dword [esp + 0x10]
fmul dword [0x45d6bc]
fadd dword [0x451994]
call sub.MSVCRT.DLL__ftol
mov ebp, eax
fld dword [esp + 0x14]
fcomp dword [0x45189c]
fnstsw ax
test ah, 1
jne 0x403192
mov ebx, 0xff
jmp 0x4031be
fld dword [esp + 0x14]
fcomp dword [0x4519a4]
fnstsw ax
test ah, 0x41
je 0x4031a7
xor ebx, ebx
jmp 0x4031be
fld dword [esp + 0x14]
fmul dword [0x45d6bc]
fadd dword [0x451994]
call sub.MSVCRT.DLL__ftol
mov ebx, eax
fld dword [esp + 0x18]
fcomp dword [0x45189c]
fnstsw ax
test ah, 1
jne 0x4031d6
mov edi, 0xff
jmp 0x403202
fld dword [esp + 0x18]
fcomp dword [0x4519a4]
fnstsw ax
test ah, 0x41
je 0x4031eb
xor edi, edi
jmp 0x403202
fld dword [esp + 0x18]
fmul dword [0x45d6bc]
fadd dword [0x451994]
call sub.MSVCRT.DLL__ftol
mov edi, eax
fld dword [esp + 0x1c]
fcomp dword [0x45189c]
fnstsw ax
test ah, 1
jne 0x40321a
mov eax, 0xff
jmp 0x403244
fld dword [esp + 0x1c]
fcomp dword [0x4519a4]
fnstsw ax
test ah, 0x41
je 0x40322f
xor eax, eax
jmp 0x403244
fld dword [esp + 0x1c]
fmul dword [0x45d6bc]
fadd dword [0x451994]
call sub.MSVCRT.DLL__ftol
shl eax, 8
mov ecx, dword [esi + 0xec]
or eax, ebp
shl eax, 8
mov edx, dword [ecx]
or eax, ebx
shl eax, 8
or eax, edi
push eax
push 0x3c
push ecx
call dword [edx + 0xe4]
jmp 0x403328
mov eax, dword [esi + 0xec]
push 0
push 0x89
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [esi + 0xec]
push 2
push 2
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 1
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 5
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 2
push 4
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 1
push 1
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 4
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 1
push 2
mov edx, dword [eax]
push eax
call dword [edx + 0x10c]
mov eax, dword [esi + 0xec]
push 1
push 4
push 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10c]
mov al, byte [0x463e90]
test al, al
je 0x40334c
mov edx, dword [0x463e9c]
mov ecx, esi
push edx
push 3
call fcn.00402180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, dword [0x463e9c]
mov ecx, esi
push eax
push 1
call fcn.00402180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret