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

Disassembly:
sub esp, 0x1c0
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 4]
push edi
push eax
lea eax, [esp + 0x98]
xor ebp, ebp
push eax
mov dword [esp + 0x28], ebp
call fcn.005b34d0
mov ecx, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebp
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5ba7d8
mov edx, dword [ecx]
call dword [edx + 8]
test ebx, ebx
mov edi, eax
je 0x5ba7d2
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0xc]
mov dword [esp + 0x14], edi
mov ebx, edi
cmp ebp, 1
jne 0x5ba862
mov eax, dword [esi + 0x28]
push eax
lea ecx, [esp + 0x168]
push ecx
mov ecx, dword [esi + 4]
call fcn.005b3390
mov edi, eax
push edi
lea ecx, [esp + 0x104]
call fcn.005b32b0
lea edx, [esp + 0x100]
push edx
lea ecx, [esp + 0x98]
call fcn.005b3130
mov eax, dword [esp + 0x160]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x5ba833
push eax
call fcn.004186c0
add esp, 4
mov edx, dword [edi + 0x64]
mov dword [esp + 0xf8], edx
mov eax, dword [edi + 0x68]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x1c4]
lea ecx, [esp + 0x16c]
cmp eax, ecx
je 0x5ba862
push eax
call fcn.004186c0
add esp, 4
lea ecx, [esp + 0x94]
call fcn.005b51d0
test eax, eax
je 0x5bac03
xor edi, edi
cmp ebx, edi
je 0x5ba8a0
lea edx, [esp + 0x94]
push ebx
push edx
call fcn.005b9e50
add esp, 8
test al, al
je 0x5ba8a0
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0xc]
mov dword [esp + 0x14], edi
mov ebx, edi
lea ecx, [esp + 0x94]
mov dword [esp + 0x28], edi
call fcn.005b51d0
test eax, eax
jle 0x5bac03
jmp 0x5ba8c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5bac11
push edi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x9c]
call fcn.005b52b0
or edx, 0xffffffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
je 0x5babe2
mov edx, dword [esi + 0x2c]
xor ecx, ecx
cmp edx, ecx
mov ebp, 1
mov dword [esp + 0x1c], ecx
jle 0x5baa22
mov edi, dword [esp + 0x1e0]
mov dword [esp + 0x18], ecx
add edi, 0xd4
jmp 0x5ba960
mov ecx, dword [esp + 0x1e0]
test ecx, ecx
mov ecx, dword [esi + 0x90]
push ecx
push eax
mov eax, dword [esp + 0x1e0]
mov ecx, dword [eax]
push ecx
je 0x5ba9c9
sub esp, 0x6c
mov ebx, esp
lea edx, [edi - 0x68]
push edx
mov ecx, ebx
call fcn.005b32b0
mov eax, dword [edi - 4]
mov dword [ebx + 0x64], eax
mov ecx, dword [edi]
sub esp, 0x6c
mov dword [ebx + 0x68], ecx
mov ebx, esp
lea edx, [edi - 0xd4]
push edx
mov ecx, ebx
call fcn.005b32b0
mov eax, dword [edi - 0x70]
mov dword [ebx + 0x64], eax
mov ecx, dword [edi - 0x6c]
lea edx, [esp + 0x158]
mov dword [ebx + 0x68], ecx
mov ecx, dword [esi + 4]
push edx
call fcn.005b3410
jmp 0x5ba9e5
mov edx, dword [esi + 0x50]
mov ebx, dword [esp + 0x24]
mov edx, dword [edx + ebx + 0x18]
mov ecx, dword [esi + 4]
push edx
lea edx, [esp + 0x88]
push edx
call fcn.005b36c0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x5babde
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x2c]
mov dword [esp + ebp*4 + 0x30], eax
mov eax, dword [esp + 0x1c]
inc ebp
inc eax
add edx, 0x1c
add edi, 0xd8
mov dword [esp + 0x1c], eax
cmp eax, ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edx
jl 0x5ba960
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x54]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x1c], ecx
jle 0x5bab05
mov edi, dword [esp + 0x1e4]
mov dword [esp + 0x18], ecx
add edi, 0xd4
jmp 0x5baa50
mov eax, dword [esp + 0x30]
lea ebx, [ebx]
mov ecx, dword [esp + 0x1e4]
test ecx, ecx
mov ecx, dword [esi + 0x90]
push ecx
push eax
mov eax, dword [esp + 0x1e0]
mov ecx, dword [eax]
push ecx
je 0x5baab9
sub esp, 0x6c
mov ebx, esp
lea edx, [edi - 0x68]
push edx
mov ecx, ebx
call fcn.005b32b0
mov eax, dword [edi - 4]
mov dword [ebx + 0x64], eax
mov ecx, dword [edi]
sub esp, 0x6c
mov dword [ebx + 0x68], ecx
mov ebx, esp
lea edx, [edi - 0xd4]
push edx
mov ecx, ebx
call fcn.005b32b0
mov eax, dword [edi - 0x70]
mov dword [ebx + 0x64], eax
mov ecx, dword [edi - 0x6c]
lea edx, [esp + 0x160]
mov dword [ebx + 0x68], ecx
mov ecx, dword [esi + 4]
push edx
call fcn.005b3410
jmp 0x5baad5
mov edx, dword [esi + 0x78]
mov ebx, dword [esp + 0x24]
mov edx, dword [edx + ebx + 0x18]
mov ecx, dword [esi + 4]
push edx
lea edx, [esp + 0x90]
push edx
call fcn.005b36c0
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x54]
mov dword [esp + ebp*4 + 0x30], eax
mov eax, dword [esp + 0x1c]
inc ebp
inc eax
add edx, 0x1c
add edi, 0xd8
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jl 0x5baa46
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x5bab46
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1d8]
lea ecx, [esi + 0x90]
push ecx
push ebp
lea edx, [esp + 0x38]
or edi, 1
push edx
mov dword [esp + 0x2c], edi
mov edi, dword [ebx]
push eax
lea ecx, [esp + 0x94]
call fcn.005b86b0
push eax
mov ecx, ebx
call dword [edi + 4]
test al, al
mov byte [esp + 0x13], 0
je 0x5bab4b
mov byte [esp + 0x13], 1
test byte [esp + 0x20], 1
je 0x5bab85
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x90]
and edx, 0xfffffffe
test eax, eax
mov dword [esp + 0x20], edx
je 0x5bab85
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5bab85
test edi, edi
je 0x5bab85
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x5babe2
mov ebp, dword [esp + 0x1d4]
test ebp, ebp
jle 0x5babcf
mov edi, dword [esp + 0x1d8]
lea ebx, [esp + 0x30]
sub ebx, edi
jmp 0x5babb0
mov ecx, dword [ebx + edi]
mov edx, dword [edi]
mov eax, dword [esp + 0x1dc]
push ecx
mov ecx, dword [eax]
push edx
call fcn.005bdfc0
add edi, 4
dec ebp
jne 0x5babb0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x5babe2
dec eax
mov dword [esp + 0x24], eax
jmp 0x5babe2
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
inc edi
lea ecx, [esp + 0x94]
mov dword [esp + 0x28], edi
call fcn.005b51d0
cmp edi, eax
jl 0x5ba8c0
mov ebp, dword [esp + 0x2c]
inc ebp
cmp ebp, 2
mov dword [esp + 0x2c], ebp
jl 0x5ba7b7
test ebx, ebx
je 0x5bac1e
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0xf4]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x5bac39
push eax
call fcn.004186c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0
ret 0x14