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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x66dc80
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 0x5ed4ae
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x5ed4ae
cmp ecx, eax
je 0x5ed4ae
mov eax, dword [esp + 0x6c]
xor ebx, ebx
cmp eax, ebx
jne 0x5ed20e
xor esi, esi
jmp 0x5ed219
mov ecx, dword [eax + 0x10]
push edi
call fcn.00493c90
mov esi, eax
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
mov dword [esp + 0x68], ebx
call fcn.005f2450
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp ecx, eax
jle 0x5ed24b
lea edx, [esp + 0x74]
lea eax, [esp + 0x70]
push edx
push eax
call fcn.005ed0b0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005f2980
mov edx, dword [esp + 0x70]
mov ebx, eax
mov eax, dword [esp + 0x10]
push edx
push ebx
push eax
mov ecx, edi
call fcn.005ed0d0
mov ecx, dword [esp + 0x7c]
mov ebp, eax
mov dword [esp + 0x20], ebp
cmp dword [ecx], 0
je 0x5ed46a
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5ed46a
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00407810
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.00499b80
mov ecx, edi
call fcn.005ef800
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.0049a250
mov ecx, esi
call fcn.005f2570
mov eax, dword [esp + 0x7c]
xor edi, edi
fadd dword [esi + 0x4c]
mov eax, dword [eax]
test eax, eax
fstp dword [esp + 0x20]
jle 0x5ed44d
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x5ed365
mov ecx, dword [esp + 0x70]
jmp 0x5ed36b
lea ecx, [edi + ebp]
mov ecx, dword [edx + ecx*8]
dec eax
cmp edi, eax
jne 0x5ed376
mov eax, dword [esp + 0x74]
jmp 0x5ed384
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.0049a250
mov ecx, esi
call fcn.005f2570
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.004abd90
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 0x5ed357
mov eax, dword [esp + 0x10]
push eax
call fcn.006247dc
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0
call fcn.00499a60
jmp 0x5ed49d
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push ebx
push edx
mov ecx, edi
call fcn.005ed0d0
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 0x5ed49d
push eax
call fcn.006247dc
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
call fcn.00499a60
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0x14