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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x668890
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x70]
cmp ecx, 0xffffffff
je 0x5e7b1e
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x5e7b1e
cmp ecx, eax
je 0x5e7b1e
mov eax, dword [esp + 0x6c]
xor ebx, ebx
cmp eax, ebx
jne 0x5e787e
xor esi, esi
jmp 0x5e7889
mov ecx, dword [eax + 0x10]
push edi
call fcn.00492b70
mov esi, eax
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov dword [esp + 0x68], ebx
call fcn.005eca90
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp ecx, eax
jle 0x5e78bb
lea edx, [esp + 0x74]
lea eax, [esp + 0x70]
push edx
push eax
call fcn.0048e810
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005ecfc0
mov edx, dword [esp + 0x70]
mov ebx, eax
mov eax, dword [esp + 0x10]
push edx
push ebx
push eax
mov ecx, edi
call fcn.005e7740
mov ecx, dword [esp + 0x7c]
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp dword [ecx], 0
je 0x5e7ada
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5e7ada
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.005e3af0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], 0
mov ecx, dword [eax + 0x14]
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x38], 0
fld dword [esi + 8]
sub esp, 0x10
mov edx, dword [ecx]
fst dword [esp + 0x2c]
mov eax, esp
mov byte [esp + 0x78], 1
fstp dword [esp + 0x4c]
mov dword [eax], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + 0xc], ebx
call dword [edx + 0x18]
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00498a90
mov ecx, edi
call fcn.005e9e50
fld dword [esi + 0xc]
fadd dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
fimul dword [esp + 0x20]
mov eax, dword [eax + ebp*8]
sub ecx, eax
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push ecx
push eax
push edx
lea ecx, [esp + 0x24]
fsubr dword [esi + 0x54]
fstp dword [esp + 0x34]
call fcn.00499190
mov ecx, esi
call fcn.005ecbb0
mov eax, dword [esp + 0x7c]
xor edi, edi
fadd dword [esi + 0x4c]
mov eax, dword [eax]
test eax, eax
fstp dword [esp + 0x20]
jle 0x5e7abd
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x5e79d5
mov ecx, dword [esp + 0x70]
jmp 0x5e79db
lea ecx, [edi + ebp]
mov ecx, dword [edx + ecx*8]
dec eax
cmp edi, eax
jne 0x5e79e6
mov eax, dword [esp + 0x74]
jmp 0x5e79f4
lea eax, [edi + ebp]
mov ebx, dword [edx + eax*8]
lea edx, [edx + eax*8]
mov eax, dword [edx + 4]
add eax, ebx
push ecx
sub eax, ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00499190
mov ecx, esi
call fcn.005ecbb0
fadd dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esi + 0x24]
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
fsub dword [esp + 0x1c]
mov dword [esp + 0x30], eax
fstp dword [esp + 0x3c]
call fcn.004aacf0
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
lea eax, [esp + 0x3c]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x48]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + 0xc], ebx
call dword [edx + 0x18]
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
mov ecx, edi
mov eax, dword [esp + 0x40]
shl ecx, 4
add ecx, ebx
inc edi
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + 0xc], eax
mov eax, dword [edx]
fld dword [esi + 0xc]
fadd dword [esp + 0x18]
mov ecx, dword [esi + 0x4c]
cmp edi, eax
mov dword [esp + 0x20], ecx
fsubr dword [esp + 0x24]
fstp dword [esp + 0x24]
jl 0x5e79c7
mov eax, dword [esp + 0x10]
push eax
call fcn.0061f99c
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0
call fcn.00498970
jmp 0x5e7b0d
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
mov ecx, edi
call fcn.005e7740
sub ebp, eax
mov ecx, dword [esp + 0x7c]
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5e7b0d
push eax
call fcn.0061f99c
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.00498970
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0x14