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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x1c]
lea eax, [esp + 0x3c]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0x14]
sub eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
xor edi, edi
jmp 0x496d7c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x20]
add eax, ecx
lea ecx, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00499e80
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xbc]
push eax
push esi
push ecx
call fcn.00496fc0
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x48]
mov dword [esp + edi + 0x50], eax
push edx
lea edx, [eax + eax*4]
shl edx, 4
push ebx
add edx, esi
push ecx
lea eax, [esp + 0xd4]
push edx
push eax
call fcn.00497040
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x44], ecx
mov dword [esp + edi + 0x6c], eax
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x4c]
shl ecx, 4
lea eax, [eax + eax*4]
add esp, 0x34
shl eax, 4
add ecx, ebx
add eax, esi
mov dword [esp + 0xc], 5
fld qword [ecx]
fadd qword [eax]
mov edx, dword [esp + 0x10]
add eax, 8
add edx, 8
add ecx, 8
mov dword [esp + 0x10], edx
fstp qword [edx - 8]
mov edx, dword [esp + 0xc]
dec edx
mov dword [esp + 0xc], edx
jne 0x496e0a
push 0x3f53a92a
lea edx, [esp + 0x5c]
push 0x30553261
push edx
call fcn.00499d60
lea eax, [esp + 0x34]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x28]
push ebx
push ecx
lea edx, [eax + eax*4]
lea eax, [esp + 0xc0]
shl edx, 4
add edx, esi
push edx
push eax
call fcn.00497100
mov eax, dword [esp + 0x48]
add esp, 0x20
mov dword [esp + edi + 0x40], eax
lea ecx, [esp + 0x80]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x18]
shl edx, 4
lea eax, [eax + eax*4]
mov dword [esp + 0xc], ecx
shl eax, 4
lea ecx, [edx + ebx + 0x28]
mov dword [esp + 0x10], 5
lea eax, [eax + esi + 0x28]
fld qword [ecx]
fadd qword [eax]
mov edx, dword [esp + 0xc]
add eax, 8
add edx, 8
add ecx, 8
mov dword [esp + 0xc], edx
fstp qword [edx - 8]
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
jne 0x496e9b
push 0x3f53a92a
lea ecx, [esp + 0x5c]
push 0x30553261
push ecx
call fcn.00499da0
push 0x3f43a92a
lea edx, [esp + 0x68]
push 0x30553261
push edx
call fcn.00499de0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc0]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x78]
push edx
push eax
push ecx
call fcn.004971c0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
add ecx, 0x140
add edi, 4
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x50]
add esp, 0x2c
add edx, 0x50
add ecx, 8
cmp edi, 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
jl 0x496d78
lea edx, [esp + 0x2c]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00497210
mov eax, dword [esp + 0x34]
mov edi, dword [ebp + 0x2c]
mov edx, eax
mov ecx, dword [esp + eax*4 + 0x38]
shl edx, 7
or edx, ecx
mov dword [edi], edx
mov edx, dword [esp + eax*4 + 0x40]
mov edi, dword [esp + eax*4 + 0x48]
mov dword [esp + 0x14], edx
shl edx, 5
mov dword [esp + 0x24], edi
or edx, edi
mov edi, dword [ebp + 0x2c]
mov dword [edi + 4], edx
mov edi, dword [ebp + 0x24]
lea edx, [eax + eax*4]
lea eax, [eax + eax*4]
shl edx, 4
add edx, edi
mov edi, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x20]
shl eax, 6
add eax, edi
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ecx
push ebx
push esi
call fcn.00499c90
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret