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

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
mov esi, ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [edx + 0x12c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov ecx, dword [edx + 0x12c]
shr ecx, 4
and cl, 1
shr eax, 6
push edi
mov edi, dword [esi + 0x1cc]
and eax, 1
mov byte [esp + 0x1b], cl
xor ecx, ecx
test edi, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
jle 0x492dde
jmp 0x4924d0
mov eax, dword [esp + 0x4c]
lea ecx, [ecx]
mov edx, dword [esi + 0x1c8]
mov edi, dword [edx + ecx*4]
mov cl, byte [edi + 0x6c]
test cl, cl
jne 0x492dc3
test eax, eax
lea ebx, [edi + 8]
mov ecx, ebx
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
je 0x4925f1
fld dword [ebx]
lea edx, [esp + 0xbc]
fsub dword [esi + 0x170]
push edx
lea eax, [esi + 0x1b4]
push eax
fstp dword [esp + 0xc4]
lea eax, [esp + 0x19c]
fld dword [ebx + 4]
push eax
fsub dword [esi + 0x174]
lea ebp, [esi + 0x1a4]
fstp dword [esp + 0xcc]
fld dword [ebx + 8]
fsub dword [esi + 0x178]
fstp dword [esp + 0xd0]
call fcn.004a9b50
push eax
lea ecx, [esp + 0x174]
push ebp
push ecx
call fcn.004a9ac0
add esp, 0x14
push eax
lea edx, [esp + 0x148]
push edx
call fcn.004a9bb0
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
add esp, 0xc
mov dword [esp + 0x24], eax
lea ebp, [edi + 0x54]
push ebp
lea eax, [esi + 0x1b4]
push eax
lea ecx, [esp + 0x17c]
push ecx
call fcn.004a9b50
push eax
lea eax, [esi + 0x1a4]
push eax
lea edx, [esp + 0x198]
push edx
call fcn.004a9ac0
add esp, 0x14
push eax
lea eax, [esp + 0x154]
push eax
call fcn.004a9bb0
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [ebp + 4], edx
mov eax, dword [eax + 8]
lea ecx, [esi + 0x164]
push ecx
lea ecx, [esp + 0x20]
mov dword [ebp + 8], eax
call fcn.004a9740
jmp 0x492607
mov edx, ebx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x12c]
mov ecx, eax
shr ecx, 8
test cl, 1
je 0x49267d
shr eax, 6
test al, 1
jne 0x49267d
mov eax, dword [esi + 0x40]
test eax, eax
je 0x49267d
fld dword [eax + 0x80]
lea edx, [esp + 0x8c]
fsub dword [esi + 0x160]
push edx
fld dword [eax + 0x7c]
lea ecx, [esp + 0x20]
fsub dword [esi + 0x15c]
fld dword [eax + 0x78]
fsub dword [esi + 0x158]
fstp dword [esp + 0x90]
fstp dword [esp + 0x94]
fstp dword [esp + 0x98]
call fcn.004a9740
lea eax, [esp + 0x8c]
push eax
lea ecx, [edi + 0x60]
call fcn.004a9740
mov ecx, dword [ebp + 0x12c]
shr ecx, 0xa
test cl, 1
je 0x4926e5
fld dword [esi + 0x164]
lea edx, [esp + 0x98]
fsub dword [esi + 0x158]
push edx
lea ecx, [esp + 0x20]
fstp dword [esp + 0x9c]
fld dword [esi + 0x168]
fsub dword [esi + 0x15c]
fstp dword [esp + 0xa0]
fld dword [esi + 0x16c]
fsub dword [esi + 0x160]
fstp dword [esp + 0xa4]
call fcn.004a9740
lea eax, [esp + 0x98]
push eax
lea ecx, [edi + 0x60]
call fcn.004a9740
fld dword [esp + 0x1b8]
lea ebp, [edi + 0x54]
fmul dword [ebp]
mov ecx, ebx
fld dword [esp + 0x1b8]
fmul dword [ebp + 4]
fld dword [esp + 0x1b8]
fmul dword [ebp + 8]
fstp dword [esp + 0x10c]
fxch st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x128]
fadd dword [esp + 0x20]
fld dword [esp + 0x10c]
fadd dword [esp + 0x24]
fld dword [edi + 0x18]
fld st(0)
fmul dword [edi + 0x1c]
fld st(1)
fmul dword [edi + 0x20]
fstp dword [esp + 0xa8]
fxch st(1)
fmul dword [edi + 0x24]
fstp dword [esp + 0xac]
fmul dword [esp + 0x1b8]
fld dword [esp + 0xa8]
fmul dword [esp + 0x1b8]
fld dword [esp + 0xac]
fmul dword [esp + 0x1b8]
fstp dword [esp + 0x118]
fxch st(1)
fadd dword [esp + 0x128]
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
mov dword [ecx], edx
fadd st(2)
fstp dword [esp + 0x78]
fld dword [esp + 0x118]
mov eax, dword [esp + 0x78]
fadd st(1)
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
mov dword [ecx + 8], edx
fstp st(0)
mov ecx, dword [eax + 0x12c]
fstp st(0)
shr ecx, 2
test cl, 1
je 0x492835
cmp dword [esi + 0x1cc], 0x32
jl 0x4927d8
mov eax, dword [esp + 0x30]
cdq
mov ecx, 6
idiv ecx
test edx, edx
jne 0x492829
mov ecx, dword [esp + 0x1b8]
mov edx, dword [0x7b92a0]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x20]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], ecx
mov ecx, dword [0x7b92a0]
lea edx, [esp + 0x168]
push edx
call dword [eax + 0xd0]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.004a9740
fld dword [esp + 0x1b8]
fmul dword [esi + 0x7c]
fmul dword [0x7432f4]
fsubr dword [edi + 0x5c]
fstp dword [edi + 0x5c]
fld dword [0x73d764]
fsub dword [esp + 0x1b8]
fmul dword [edi + 0x18]
fcom dword [0x73d700]
fst dword [edi + 0x18]
fnstsw ax
test ah, 5
jp 0x492876
fmul dword [0x740cbc]
fstp dword [edi + 0x18]
jmp 0x492878
fstp st(0)
mov al, byte [esp + 0x1b]
test al, al
je 0x492dc3
mov ecx, dword [esi + 0x1e8]
call fcn.00456a60
mov edx, dword [ebx]
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov ecx, dword [ebx + 8]
mov dword [esp + 0x24], ecx
mov al, byte [edx + 0xf0]
test al, al
je 0x492918
mov ebx, dword [esi + 0x1e8]
mov eax, dword [ebx + 8]
add ebx, 8
test eax, eax
je 0x4928d0
push eax
call fcn.006fa390
add esp, 4
mov dword [ebx], 0
xor edx, edx
mov dword [ebx + 8], edx
mov dword [ebx + 4], edx
mov ecx, dword [edi + 0x74]
cmp ecx, edx
mov dword [esp + 0x14], ecx
je 0x492918
mov ebx, dword [esi + 0x1e8]
mov eax, dword [ebx + 0x10]
add ebx, 8
cmp dword [ebx + 4], eax
jne 0x49290d
cmp eax, edx
je 0x4928fc
add eax, eax
jmp 0x492901
mov eax, 8
push eax
mov ecx, ebx
call fcn.005e03c0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [edx + eax*4], ecx
inc dword [ebx + 4]
mov eax, dword [0x7b92a0]
mov edx, dword [eax]
mov eax, dword [esi + 0x1e8]
push eax
lea eax, [edi + 8]
push eax
mov ebx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x70]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x84]
mov dword [ecx + 8], eax
mov ecx, dword [0x7b92a0]
call dword [edx + 0x38]
test eax, eax
je 0x492dc3
mov eax, dword [0x798ba0]
cmp eax, 1
jne 0x492b00
fld dword [esi + 0x5c]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jp 0x4929d9
mov dword [esp + 0x80], 0
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x84], 0
mov edx, dword [esp + 0x84]
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x88]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov dword [esp + 0x10], 0
jmp 0x492bd1
fld dword [0x743330]
fdiv dword [esp + 0x1b8]
fcom dword [0x73d764]
fnstsw ax
test ah, 0x41
jne 0x4929fd
fstp st(0)
fld dword [0x73d764]
jmp 0x492a12
fcom dword [0x73e9ac]
fnstsw ax
test ah, 5
jp 0x492a12
fstp st(0)
fld dword [0x73e9ac]
mov eax, dword [esi + 0x1e8]
fld dword [eax + 0x40]
mov ecx, ebp
fmul dword [0x7432f0]
fld dword [eax + 0x44]
fmul dword [0x7432f0]
fld dword [eax + 0x48]
fmul dword [0x7432f0]
fstp dword [esp + 0x100]
fld dword [eax + 0x48]
fmul dword [ebp + 8]
fld dword [eax + 0x44]
fmul dword [ebp + 4]
faddp st(1)
fld dword [eax + 0x40]
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x10]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0xec]
fmul dword [esp + 0x10]
fld dword [esp + 0x100]
fmul dword [esp + 0x10]
fld dword [esp + 0xec]
fadd dword [ebp]
fstp dword [esp + 0xd4]
fxch st(1)
fadd dword [ebp + 4]
fstp dword [esp + 0xd8]
fadd dword [ebp + 8]
fld dword [esp + 0xd4]
fmul dword [0x73e31c]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fld dword [esp + 0xd8]
mov dword [ecx], edx
fmul dword [0x73e31c]
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
fmul dword [0x73e31c]
mov dword [ecx + 4], eax
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
fmul dword [edi + 0x5c]
fmul dword [esi + 0x5c]
fst dword [edi + 0x5c]
fld dword [edi + 0x58]
fld dword [ebp]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp dword [esp + 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x492bd1
cmp eax, 2
jne 0x492bd1
mov eax, dword [esi + 0x1e8]
fld dword [eax + 0x40]
push ebp
fmul dword [0x7432f0]
fld dword [eax + 0x44]
fmul dword [0x7432f0]
fld dword [eax + 0x48]
fmul dword [0x7432f0]
fstp dword [esp + 0x128]
fld dword [ebp + 8]
fmul dword [eax + 0x48]
fld dword [ebp + 4]
fmul dword [eax + 0x44]
faddp st(1)
fld dword [eax + 0x40]
mov eax, ebp
fmul dword [ebp]
faddp st(1)
fstp dword [esp + 0x14]
fxch st(1)
fmul dword [esp + 0x14]
fstp dword [esp + 0x138]
fmul dword [esp + 0x14]
fld dword [esp + 0x128]
fmul dword [esp + 0x14]
fld dword [esp + 0x138]
fadd dword [ebp]
fstp dword [esp + 0xb4]
fxch st(1)
fadd dword [ebp + 4]
fstp dword [esp + 0xb8]
fadd dword [ebp + 8]
fld dword [esi + 0x5c]
fld dword [esp + 0xb4]
fmul st(1)
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fld dword [esp + 0xb8]
mov dword [eax], ecx
fmul st(1)
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
fxch st(1)
fmul st(1)
mov dword [eax + 4], edx
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
fstp st(0)
mov dword [eax + 8], ecx
call fcn.004ab100
fstp dword [esp + 0x14]
add esp, 4
cmp dword [0x798ba0], 1
jne 0x492bf4
fld dword [esp + 0x10]
fcomp qword [0x73f3d0]
fnstsw ax
test ah, 5
jnp 0x492c76
jmp 0x492dc3
mov ebx, dword [esi + 0x1e8]
fld dword [ebx + 0x40]
fcom dword [0x73d700]
fnstsw ax
test ah, 5
jp 0x492c0c
fchs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.006fc0e0
fcomp qword [0x743328]
fnstsw ax
test ah, 0x41
jne 0x492dc3
fld dword [ebx + 0x44]
fcom dword [0x73d700]
fnstsw ax
test ah, 5
jp 0x492c3c
fchs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.006fc0e0
fcomp qword [0x743328]
fnstsw ax
test ah, 0x41
jne 0x492dc3
fld dword [esp + 0x1b8]
fmul dword [0x743324]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x492dc3
mov byte [edi + 0x6c], 1
mov edx, dword [esi + 0x1e8]
add edx, 0x40
mov ecx, dword [edx]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
sub esp, 0xc
mov dword [esp + 0x80], 0
mov ecx, dword [esp + 0x80]
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x84], 0
mov edx, dword [esp + 0x84]
mov dword [eax + 4], edx
lea edx, [esp + 0x1bc]
mov dword [esp + 0x88], 0x3f800000
mov ecx, dword [esp + 0x88]
push edx
mov dword [eax + 8], ecx
call fcn.004ab630
mov edx, dword [eax]
lea ecx, [edi + 0x2c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x1e8]
fld dword [eax + 0x48]
add eax, 0x40
fmul dword [0x743320]
add esp, 0x1c
fld dword [eax + 4]
lea ecx, [esp + 0xc8]
fmul dword [0x743320]
push ecx
fld dword [eax]
lea ebx, [edi + 8]
fmul dword [0x743320]
mov ecx, ebx
fstp dword [esp + 0xcc]
fstp dword [esp + 0xd0]
fstp dword [esp + 0xd4]
call fcn.004a9740
mov edx, dword [esi + 0x1e8]
add edx, 0x40
mov eax, dword [edx]
add edi, 0x48
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x28]
mov dword [edi + 4], ecx
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
mov cl, byte [eax + 0xf0]
test cl, cl
je 0x492dc3
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x1e8]
mov dword [esp + 0x2c], ecx
fld dword [esp + 0x2c]
add eax, 0x40
fmul dword [eax + 8]
lea edx, [esp + 0xe0]
fld dword [esp + 0x2c]
push edx
fmul dword [eax + 4]
mov ecx, ebx
fld dword [esp + 0x30]
fmul dword [eax]
fstp dword [esp + 0xe4]
fstp dword [esp + 0xe8]
fstp dword [esp + 0xec]
call fcn.004a9740
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x1cc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jl 0x4924c9
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x492e3a
mov ecx, dword [edx + 0x12c]
shr ecx, 8
test cl, 1
je 0x492e3a
lea edx, [eax + 0x78]
mov edi, dword [edx]
lea ecx, [esi + 0x158]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edx, dword [edx + 8]
add eax, 0x84
mov dword [ecx + 8], edx
mov ecx, dword [eax]
add esi, 0x194
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret 4
mov eax, dword [edx + 0x12c]
shr eax, 0xa
test al, 1
je 0x492e85
lea ecx, [esi + 0x164]
mov eax, dword [ecx]
lea edx, [esi + 0x158]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
lea edx, [esi + 0x1a4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
add esi, 0x194
mov dword [esi], eax
mov eax, dword [edx + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret 4