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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5a
push 0
push 0
dec ecx
jne 0x49035d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x490e5a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x490da1
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
mov edx, 0x490e78
call fcn.00404c7c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004051fc
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.0045c1fc
lea ecx, [ebp - 0x24]
mov edx, 0x490e84
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 4]
call fcn.00404bf8
mov edx, 0x490e9c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push edx
push eax
call fcn.0045b554
fstp qword [ebx + 0x10]
wait
mov edx, 0x490eb8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push edx
push eax
call fcn.0045b554
fstp qword [ebx + 0x20]
wait
mov edx, 0x490ed4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push edx
push eax
call fcn.0045b554
fstp qword [ebx + 0x30]
wait
mov edx, 0x490eec
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push edx
push eax
call fcn.0045b554
fstp qword [ebx + 0x38]
wait
lea eax, [ebx + 0xe2c]
mov edx, 0x4de2b4
mov ecx, dword [0x46eb48]
call fcn.0040587c
xor eax, eax
mov dword [ebp - 0xc], eax
lea esi, [ebx + 0x90]
mov eax, dword [0x4db3c0]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edx, 0x4de2b4
mov ecx, dword [0x46eb48]
call fcn.0040587c
cmp dword [ebp - 0xc], 1
jne 0x4904ae
mov ecx, dword [0x4db3c0]
mov ecx, dword [ecx + 8]
lea eax, [ebp - 0x30]
mov edx, 0x490f18
call fcn.00404c7c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.004051fc
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x24]
cmp dword [ebp - 0x28], 0
je 0x49052b
cmp dword [ebp - 0xc], 8
je 0x49052b
cmp dword [ebp - 0xc], 4
je 0x49052b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea eax, [ebp - 0x14c]
mov edx, 0x490f18
call fcn.00404c7c
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x148]
call fcn.004051fc
mov edx, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0045c1fc
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x13c]
xor eax, eax
call fcn.00489ad4
lea edx, [ebp - 0x13c]
mov eax, esi
mov ecx, dword [0x46eb48]
call fcn.0040587c
inc dword [ebp - 0xc]
add dword [ebp - 0x14], 8
add esi, 0x10c
cmp dword [ebp - 0xc], 0xd
jne 0x490461
cmp dword [ebx + 0x19c], 0
jne 0x490575
lea ecx, [ebp - 0x258]
lea edx, [ebx + 0x90]
xor eax, eax
call fcn.0048a1b4
lea edx, [ebp - 0x258]
lea eax, [ebx + 0x19c]
mov ecx, dword [0x46eb48]
call fcn.0040587c
lea eax, [ebx + 0x8f0]
lea edx, [ebx + 0xb08]
mov ecx, dword [0x46eb48]
call fcn.0040587c
lea ecx, [ebx + 0x9fc]
lea edx, [ebx + 0x8f0]
mov eax, dword [ebx]
call fcn.0048a540
lea eax, [ebx + 0x4c0]
lea edx, [ebx + 0x5cc]
mov ecx, dword [0x46eb48]
call fcn.0040587c
lea ecx, [ebx + 0x6d8]
lea edx, [ebx + 0x4c0]
mov eax, dword [ebx]
call fcn.0048a540
lea ecx, [ebx + 0x7e4]
lea edx, [ebx + 0x4c0]
mov eax, dword [ebx]
call fcn.0048a540
xor eax, eax
mov dword [ebx + 0xe2c], eax
mov eax, dword [ebp + 8]
push eax
mov edx, 0x490f28
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov edx, eax
xor eax, eax
mov al, byte [0x4de3c0]
imul eax, eax, 0x43
mov eax, dword [ebx + eax*4 + 0x90]
mov ecx, ebx
call fcn.0048c914
xor eax, eax
mov al, byte [0x4de3c0]
imul eax, eax, 0x43
lea esi, [ebx + eax*4 + 0x90]
cmp dword [esi], 0
jle 0x490c83
lea edi, [esi + 0x8c]
push 0
push 0
push 0x3fff
push 0xddb22d0e
push 0x56041893
fild dword [esi + 0x3c]
fild dword [esi]
fdivp st(1)
fadd dword [0x490f44]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d4f0
fmul dword [0x490f48]
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x25c], eax
fild qword [ebp - 0x260]
fild dword [esi]
fdivp st(1)
fmul dword [0x490f4c]
fld dword [esi + 0x74]
fadd dword [0x490f50]
fdivp st(1)
fld dword [0x490f50]
fmul dword [esi + 0x74]
fdiv dword [0x490f54]
fld xword [0x490f58]
faddp st(1)
fmulp st(1)
imul eax, dword [esi + 0x34], 0xfa
imul edx, dword [esi + 0x38], 0x96
add eax, edx
imul edx, dword [esi + 0x40], 0x96
add eax, edx
mov dword [ebp - 0x264], eax
fild dword [ebp - 0x264]
fild dword [esi]
fdivp st(1)
faddp st(1)
faddp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.0042d448
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0042d678
fstp dword [edi]
wait
xor eax, eax
mov al, byte [0x4de3c0]
imul eax, eax, 0x43
lea eax, [ebx + eax*4 + 0x90]
lea edx, [ebx + 0xe2c]
call fcn.0048a8b8
fstp dword [edi + 8]
wait
fild dword [esi]
fldln2
fxch st(1)
fyl2x
fdiv dword [0x490f4c]
fild dword [esi + 0x14]
fild dword [esi]
fdivp st(1)
fmul dword [0x490f44]
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x25c], eax
fild qword [ebp - 0x260]
fild dword [esi]
fdivp st(1)
fild dword [esi + 4]
fild dword [esi]
fdivp st(1)
fmul dword [0x490f50]
fild dword [esi + 0x34]
fild dword [esi]
fdivp st(1)
fld xword [0x490f64]
fmulp st(1)
faddp st(1)
fild dword [esi + 0x38]
fild dword [esi]
fdivp st(1)
fmul dword [0x490f70]
faddp st(1)
fild dword [esi + 0x3c]
fild dword [esi]
fdivp st(1)
fmul dword [0x490f70]
faddp st(1)
fild dword [esi + 0x40]
fild dword [esi]
fdivp st(1)
fmul dword [0x490f70]
faddp st(1)
fmulp st(1)
faddp st(1)
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.0042d448
fstp dword [edi + 0x10]
wait
mov edx, 0x490f78
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edx
fild qword [ebp - 0x260]
fstp dword [edi + 0x18]
wait
fld dword [edi]
fcomp dword [0x490f94]
fnstsw ax
sahf
jbe 0x4907e2
mov dword [edi + 4], 0x42c80000
jmp 0x490860
fld xword [0x490f98]
fmul dword [edi]
fld xword [0x490fa4]
fsubp st(1)
fmul dword [edi]
fld xword [0x490fb0]
faddp st(1)
fmul dword [edi]
fld xword [0x490fbc]
fsubp st(1)
fmul dword [edi]
fld xword [0x490fc8]
fsubp st(1)
fmul dword [edi]
fld xword [0x490fd4]
faddp st(1)
fmul dword [edi]
fld xword [0x490fe0]
fsubp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0x4005
push 0xc8000000
push 0
call fcn.0042d600
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0
push 0
push 0
call fcn.0042d6ac
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.0042d448
fstp dword [edi + 4]
wait
fld dword [edi + 8]
fcomp dword [0x490fec]
fnstsw ax
sahf
jbe 0x49087a
mov dword [edi + 0xc], 0x42c80000
jmp 0x4908fe
fld xword [0x490ff0]
fmul dword [edi + 8]
fld xword [0x490ffc]
faddp st(1)
fmul dword [edi + 8]
fld xword [0x491008]
fsubp st(1)
fmul dword [edi + 8]
fld xword [0x491014]
faddp st(1)
fmul dword [edi + 8]
fld xword [0x491020]
fsubp st(1)
fmul dword [edi + 8]
fld xword [0x49102c]
faddp st(1)
fmul dword [edi + 8]
fld xword [0x491038]
fsubp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0x4005
push 0xc8000000
push 0
call fcn.0042d600
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0
push 0
push 0
call fcn.0042d6ac
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.0042d448
fstp dword [edi + 0xc]
wait
fld dword [edi + 0x10]
fcomp dword [0x491044]
fnstsw ax
sahf
jbe 0x490918
mov dword [edi + 0x14], 0x42c80000
jmp 0x49099c
fld xword [0x491048]
fmul dword [edi + 0x10]
fld xword [0x491054]
faddp st(1)
fmul dword [edi + 0x10]
fld xword [0x491060]
fsubp st(1)
fmul dword [edi + 0x10]
fld xword [0x49106c]
faddp st(1)
fmul dword [edi + 0x10]
fld xword [0x491078]
fsubp st(1)
fmul dword [edi + 0x10]
fld xword [0x491084]
faddp st(1)
fmul dword [edi + 0x10]
fld xword [0x491090]
fsubp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0x4005
push 0xc8000000
push 0
call fcn.0042d600
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0
push 0
push 0
call fcn.0042d6ac
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.0042d448
fstp dword [edi + 0x14]
wait
fld dword [edi + 0x18]
fcomp dword [0x49109c]
fnstsw ax
sahf
jbe 0x4909b6
mov dword [edi + 0x1c], 0x42c80000
jmp 0x490a3a
fld xword [0x4910a0]
fmul dword [edi + 0x18]
fld xword [0x4910ac]
faddp st(1)
fmul dword [edi + 0x18]
fld xword [0x4910b8]
fsubp st(1)
fmul dword [edi + 0x18]
fld xword [0x4910c4]
faddp st(1)
fmul dword [edi + 0x18]
fld xword [0x4910d0]
fsubp st(1)
fmul dword [edi + 0x18]
fld xword [0x4910dc]
faddp st(1)
fmul dword [edi + 0x18]
fld xword [0x4910e8]
fsubp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0x4005
push 0xc8000000
push 0
call fcn.0042d600
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0
push 0
push 0
call fcn.0042d6ac
add esp, 0xfffffff8
fstp qword [esp]
wait
mov al, 0xfe
call fcn.0042d448
fstp dword [edi + 0x1c]
wait
fld dword [edi]
fadd dword [edi + 8]
fld dword [edi + 0x10]
fdiv dword [0x4910f4]
faddp st(1)
fdiv dword [0x4910f8]
fstp dword [edi + 0x28]
wait
push dword [edi + 0x28]
mov eax, dword [0x4dae88]
push dword [eax + 0x20]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x40]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fstp xword [ebp - 0x270]
wait
push dword [esi + 0x5c]
mov eax, dword [0x4dae88]
push dword [eax + 0x24]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax + 4]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x44]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x270]
faddp st(1)
fstp xword [ebp - 0x27c]
wait
push dword [esi + 0x74]
mov eax, dword [0x4dae88]
push dword [eax + 0x38]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax + 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x58]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x27c]
faddp st(1)
fstp xword [ebp - 0x288]
wait
push dword [esi + 0x6c]
mov eax, dword [0x4dae88]
push dword [eax + 0x30]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax + 0x10]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x50]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x288]
faddp st(1)
fstp xword [ebp - 0x294]
wait
push dword [esi + 0x88]
mov eax, dword [0x4dae88]
push dword [eax + 0x34]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax + 0x14]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x54]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x294]
faddp st(1)
fstp xword [ebp - 0x2a0]
wait
fild dword [ebx + 0x1098]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [0x4dae88]
push dword [eax + 0x3c]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax + 0x1c]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x5c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x2a0]
faddp st(1)
fstp xword [ebp - 0x2ac]
wait
fild dword [esi]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [0x4dae88]
push dword [eax + 0x28]
call fcn.0042d5d8
mov eax, dword [0x4dae88]
fdiv dword [eax + 8]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x48]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x2ac]
faddp st(1)
fstp xword [ebp - 0x2b8]
wait
fild dword [esi + 0x34]
fild dword [esi]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x2c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d600
mov eax, dword [0x4dae88]
fdiv dword [eax + 0xc]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [0x4dae88]
fld dword [eax + 0x4c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042d508
fld xword [ebp - 0x2b8]
faddp st(1)
fdiv dword [0x4910fc]
fstp dword [edi + 0x50]
wait
cmp byte [ebp + 0xc], 0
je 0x490c94
lea eax, [ebx + 0xf38]
call fcn.00486214
cmp byte [ebp - 5], 0
je 0x490ce0
lea ecx, [ebp - 0x2bc]
mov edx, 0x491104
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, dword [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2c0]
mov edx, 0x491120
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x24]
mov eax, dword [ebp - 0x2c0]
mov ecx, ebx
pop edx
call fcn.0048c538
lea eax, [ebx + 0xf3c]
call fcn.0048633c
lea ecx, [ebp - 0x2c4]
mov edx, 0x491140
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov eax, dword [ebp - 0x2c4]
xor edx, edx
call fcn.00405334
je 0x490d5e
lea ecx, [ebp - 0x2c8]
mov edx, 0x491140
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov edx, dword [ebp - 0x2c8]
lea eax, [ebx + 0x5c]
call fcn.00404bf8
lea ecx, [ebp - 0x2cc]
mov edx, 0x491160
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov edx, dword [ebp - 0x2cc]
lea eax, [ebx + 0x78]
call fcn.00404bf8
mov edx, 0x491178
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push edx
push eax
call fcn.0045b554
fstp qword [ebx + 0x70]
wait
jmp 0x490da1
lea ecx, [ebp - 0x2d0]
mov edx, 0x49119c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov eax, dword [ebp - 0x2d0]
xor edx, edx
call fcn.00405334
je 0x490da1
lea ecx, [ebp - 0x2d4]
mov edx, 0x4911b0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x4c]
mov edx, dword [ebp - 0x2d4]
lea eax, [ebx + 0x5c]
call fcn.00404bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490e64
lea eax, [ebp - 0x2d4]
mov edx, 5
call fcn.00405090
lea eax, [ebp - 0x2c0]
mov edx, dword [0x45bb94]
mov ecx, 2
call fcn.00405664
lea eax, [ebp - 0x258]
mov edx, dword [0x46eb48]
call fcn.00405618
lea eax, [ebp - 0x14c]
call fcn.00404970
lea eax, [ebp - 0x148]
mov edx, 2
call fcn.00405090
lea eax, [ebp - 0x140]
call fcn.004067f4
lea eax, [ebp - 0x13c]
mov edx, dword [0x46eb48]
call fcn.00405618
lea eax, [ebp - 0x30]
call fcn.00404970
lea eax, [ebp - 0x2c]
call fcn.00405078
lea eax, [ebp - 0x28]
call fcn.004067f4
lea eax, [ebp - 0x24]
call fcn.00405078
lea eax, [ebp - 0x20]
call fcn.00404970
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405090
lea eax, [ebp - 0x10]
call fcn.004067f4
ret