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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x18]
push ecx
xor edi, edi
push esi
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov dword [esi + 0x14b08], eax
call fcn.004979d0
cdq
idiv dword [esi + 0x50]
mov edx, dword [ebp + 0x18]
push edx
mov dword [esp + 0x24], eax
call fcn.004938d0
add esp, 0xc
mov dword [esp + 0x10], edi
cmp dword [esi + 0x50], edi
jle 0x493b97
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x134]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
push 0
push edi
push edx
push ebx
push eax
push esi
call fcn.0048aaf0
add esp, 0x18
cmp dword [esi + 0x14b14], 2
mov edx, eax
jne 0x493a04
mov eax, edi
lea ecx, [esi + 0x134]
call fcn.00491150
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebp + 0xc]
movss xmm0, dword [edx + edi*4]
push ecx
push ecx
movss dword [esp], xmm0
push ebx
call fcn.0048acf0
add esp, 0x10
cmp dword [esi + 0x4c], 0
mov dword [esp + 0x38], 0
jle 0x493b6a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
sub ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x20]
add edi, ebx
mov ebx, dword [esp + 0x2c]
sub ecx, eax
mov dword [esp + 0x4c], ecx
mov edi, edi
cmp dword [ebx + 0x12b4], 2
je 0x493a96
fld dword [esi + 0x14bb0]
fstp qword [esp + 0x50]
fld dword [edi]
fdiv qword [0x5586b0]
fsubr qword [0x4c9290]
call fcn.004ab26c
fadd qword [0x4c5bf8]
fdivr qword [0x5586a8]
fsub qword [0x5586a0]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fsubr qword [esp + 0x50]
jmp 0x493ad1
fld dword [esi + 0x14bb4]
fstp qword [esp + 0x50]
fld dword [edi]
fdiv qword [0x5586b0]
fsubr qword [0x4c9290]
call fcn.004ab26c
fadd qword [0x4c5bf8]
fdivr qword [0x558698]
fsub qword [0x558690]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fsubr qword [esp + 0x50]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x543660]
fld qword [0x4c5be0]
fxch st(1)
call fcn.004aabb0
fstp dword [esi + 0x14bac]
push ebx
mov ecx, esi
call fcn.004917b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push ecx
push esi
call fcn.0048aec0
mov edx, dword [esp + 0x58]
add esp, 0x14
mov dword [edx + edi], eax
test eax, eax
je 0x493b21
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x1c], 0x9c
add dword [esp + 0x20], 0x1e8
mov dword [eax + edi], 0x7e
mov eax, dword [esp + 0x38]
mov edx, dword [ecx + edi]
add dword [esp + 0x14], edx
inc eax
add ebx, 0x1484
add edi, 4
mov dword [esp + 0x38], eax
cmp eax, dword [esi + 0x4c]
jl 0x493a50
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
add dword [esp + 0x24], 0x3d0
add dword [esp + 0x28], 0x138
add dword [esp + 0x2c], 0x2908
inc edi
add ebx, 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], ebx
cmp edi, dword [esi + 0x50]
jl 0x4939b9
cmp dword [esi + 0x50], 0
mov dword [esp + 0x10], 0
jle 0x493c0d
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x3c], ecx
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
jle 0x493bf4
mov edi, dword [ebp + 0x1c]
sub edi, dword [ebp + 0x20]
lea esp, [esp]
mov eax, dword [esi + 0x78]
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + eax*4]
mov eax, dword [esp + 0x14]
cmp eax, edx
jle 0x493be1
test eax, eax
jle 0x493be1
mov eax, dword [ecx]
imul eax, edx
cdq
idiv dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [ecx]
cmp dword [edi + ecx], eax
jle 0x493beb
mov dword [edi + ecx], eax
inc ebx
add ecx, 4
cmp ebx, dword [esi + 0x4c]
jl 0x493bc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
inc eax
add ecx, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
cmp eax, dword [esi + 0x50]
jl 0x493bac
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret