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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
cmp dword [ebp + 8], 0
jne 0x5b6865
mov eax, 0xffffff9a
jmp 0x5b6b73
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
jne 0x5b687e
mov eax, 0xffffff9a
jmp 0x5b6b73
mov eax, dword [ebp - 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x80], 8
jne 0x5b6913
mov eax, dword [ebp - 8]
cmp dword [eax + 0x84], 0
jne 0x5b6913
cmp dword [ebp - 0x20], 0
jne 0x5b6913
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
jne 0x5b68df
mov eax, dword [ebp - 8]
push eax
call fcn.005b6710
add esp, 4
cmp eax, 0xffffffff
jne 0x5b68c7
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x40], 0x4000
mov eax, dword [ebp - 8]
add eax, 0x88
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x2c], ecx
push 4
mov eax, dword [ebp - 8]
add eax, 0x30
push eax
call fcn.005ba860
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
sub ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x6c]
mov eax, dword [ebp - 8]
mov dword [eax + 0x6c], ecx
jmp 0x5b68a0
cmp dword [ebp - 0x20], 1
jne 0x5b6920
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jbe 0x5b6947
cmp dword [ebp - 0x20], 0
jne 0x5b6947
mov eax, dword [ebp - 8]
push eax
call fcn.005b6710
add esp, 4
cmp eax, 0xffffffff
jne 0x5b6947
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [eax + 0x80], 8
jne 0x5b697b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x84], 0
jne 0x5b697b
mov eax, dword [ebp - 8]
add eax, 0x30
push eax
call fcn.005bb870
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x84], 0
jne 0x5b699c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x408c]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x40a4]
mov dword [ebp - 0x14], ecx
push 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
add edx, 0x10
push edx
call fcn.005b62f0
add esp, 0xc
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
add edx, 0x14
push edx
call fcn.005b62f0
add esp, 0xc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5c], 1
jne 0x5b6a03
push 2
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x74]
add ecx, 0x24
push ecx
call fcn.005b62f0
add esp, 0xc
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x74]
add edx, 0x18
push edx
call fcn.005b62f0
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x5b6a41
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x78]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x24
push ecx
call fcn.005b4ee0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.005e8148
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x5b6b51
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
call edx
add esp, 8
cmp esi, esp
call fcn.005ee462
mov dword [ebp - 0x38], eax
mov esi, esp
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x70]
add ecx, 0xe
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
call ecx
add esp, 0x10
cmp esi, esp
call fcn.005ee462
test eax, eax
je 0x5b6ab8
mov dword [ebp - 0x20], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x5b6ada
push 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5b6afc
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5b6b1e
push 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.005b6200
add esp, 0x10
mov dword [ebp - 0x20], eax
mov esi, esp
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
call eax
add esp, 0x10
cmp esi, esp
call fcn.005ee462
test eax, eax
je 0x5b6b51
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40b0]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 0x40b0], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.005ee462
mov esp, ebp
pop ebp
ret