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

Disassembly:
push 0xffffffffffffffff
push 0x5f03b0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa4]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.004f2ea0
mov ecx, dword [eax]
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
mov dword [esp + 0x94], edx
call fcn.004f2ea0
mov ecx, dword [eax]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x84], edx
call fcn.005bef10
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x50]
call fcn.005bef10
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x24], edx
call fcn.004f73b0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
xor esi, esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0xa4], esi
mov dword [esp + 0x2c], edx
call fcn.004f73b0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0xa4], 1
mov dword [esp + 0x48], edx
call fcn.004fa8a0
add esp, 8
test eax, eax
je 0x5b13b1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [edi + 0x1c]
push eax
push ecx
call fcn.004fa800
add esp, 8
test eax, eax
je 0x5b1385
lea esi, [ebp + 4]
push esi
mov ecx, edi
call fcn.004f5c60
mov ecx, edi
test eax, eax
je 0x5b131b
mov edx, dword [esi]
mov ebx, dword [esp + 0xac]
mov dword [ebx], edx
mov eax, dword [esi + 4]
lea esi, [ebp + 0xc]
push esi
mov dword [ebx + 4], eax
call fcn.004f5c60
test eax, eax
je 0x5b12fa
mov ecx, dword [esi]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 4]
mov dword [ebx + 0xc], edx
jmp 0x5b1356
lea esi, [edi + 4]
push esi
mov ecx, ebp
call fcn.004f5c60
test eax, eax
mov eax, esi
jne 0x5b130e
lea eax, [edi + 0xc]
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0xc], edx
jmp 0x5b1356
lea esi, [ebp + 0xc]
push esi
call fcn.004f5c60
test eax, eax
je 0x5b1385
mov eax, dword [esi]
mov ebx, dword [esp + 0xac]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
lea esi, [edi + 4]
push esi
mov ecx, ebp
call fcn.004f5c60
test eax, eax
jne 0x5b134b
lea esi, [edi + 0xc]
mov edx, dword [esi]
mov dword [ebx + 8], edx
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 0
call fcn.004f74a0
lea ecx, [esp + 0x64]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004f74a0
mov eax, 3
jmp 0x5b1462
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 0
call fcn.004f74a0
lea ecx, [esp + 0x64]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004f74a0
xor eax, eax
jmp 0x5b1462
fild dword [esp + 0x60]
lea ecx, [esp + 0x44]
push ecx
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x80]
fild dword [esp + 0x7c]
push edx
sub esp, 8
lea eax, [esp + 0x9c]
fstp qword [esp]
push eax
call fcn.005b0f90
add esp, 0x1c
cmp eax, esi
je 0x5b1385
sub eax, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
js 0x5b1439
mov ebx, dword [esp + 0xac]
lea esi, [esp + eax*8 + 0x44]
mov edi, edi
push esi
mov ecx, edi
call fcn.004f5c60
test eax, eax
je 0x5b1429
push esi
mov ecx, ebp
call fcn.004f5c60
test eax, eax
je 0x5b1429
mov ecx, dword [esi]
mov edx, dword [esi + 4]
inc dword [esp + 0x14]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
add ebx, 8
mov eax, dword [esp + 0x18]
dec eax
sub esi, 8
mov dword [esp + 0x18], eax
test eax, eax
jge 0x5b1400
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 0
call fcn.004f74a0
lea ecx, [esp + 0x64]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004f74a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret