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

Disassembly:
sub esp, 0x1bc
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 + 0x94]
xor ebp, ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.005b34d0
mov ecx, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebp
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5baca8
mov edx, dword [ecx]
call dword [edx + 8]
test ebx, ebx
mov edi, eax
je 0x5baca2
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0xc]
mov dword [esp + 0x10], edi
mov ebx, edi
cmp ebp, 1
jne 0x5bad32
mov eax, dword [esi + 0x28]
push eax
lea ecx, [esp + 0x164]
push ecx
mov ecx, dword [esi + 4]
call fcn.005b3390
mov edi, eax
push edi
lea ecx, [esp + 0x100]
call fcn.005b32b0
lea edx, [esp + 0xfc]
push edx
lea ecx, [esp + 0x94]
call fcn.005b3130
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x104]
cmp eax, ecx
je 0x5bad03
push eax
call fcn.004186c0
add esp, 4
mov edx, dword [edi + 0x64]
mov dword [esp + 0xf4], edx
mov eax, dword [edi + 0x68]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 0x168]
cmp eax, ecx
je 0x5bad32
push eax
call fcn.004186c0
add esp, 4
lea ecx, [esp + 0x90]
call fcn.005b51d0
test eax, eax
je 0x5bb092
xor edi, edi
cmp ebx, edi
je 0x5bad70
lea edx, [esp + 0x90]
push ebx
push edx
call fcn.005b9e50
add esp, 8
test al, al
je 0x5bad70
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0xc]
mov dword [esp + 0x10], edi
mov ebx, edi
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], edi
call fcn.005b51d0
test eax, eax
jle 0x5bb092
jmp 0x5bad90
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5bb0a0
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x98]
call fcn.005b52b0
or edx, 0xffffffff
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], edx
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
je 0x5bb071
mov edx, dword [esi + 0x2c]
xor ecx, ecx
cmp edx, ecx
mov ebp, 1
mov dword [esp + 0x18], ecx
jle 0x5baef2
mov edi, dword [esp + 0x1dc]
mov dword [esp + 0x14], ecx
add edi, 0xd4
jmp 0x5bae30
mov ecx, dword [esp + 0x1dc]
test ecx, ecx
mov ecx, dword [esi + 0x90]
push ecx
push eax
mov eax, dword [esp + 0x1dc]
mov ecx, dword [eax]
push ecx
je 0x5bae99
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 + 0x154]
mov dword [ebx + 0x68], ecx
mov ecx, dword [esi + 4]
push edx
call fcn.005b3410
jmp 0x5baeb5
mov edx, dword [esi + 0x50]
mov ebx, dword [esp + 0x20]
mov edx, dword [edx + ebx + 0x18]
mov ecx, dword [esi + 4]
push edx
lea edx, [esp + 0x84]
push edx
call fcn.005b36c0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x5bb06d
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
mov dword [esp + ebp*4 + 0x2c], eax
mov eax, dword [esp + 0x18]
inc ebp
inc eax
add edx, 0x1c
add edi, 0xd8
mov dword [esp + 0x18], eax
cmp eax, ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
jl 0x5bae30
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 0x54]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x18], ecx
jle 0x5bafd5
mov edi, dword [esp + 0x1e0]
mov dword [esp + 0x14], ecx
add edi, 0xd4
jmp 0x5baf20
mov eax, dword [esp + 0x2c]
lea ebx, [ebx]
mov ecx, dword [esp + 0x1e0]
test ecx, ecx
mov ecx, dword [esi + 0x90]
push ecx
push eax
mov eax, dword [esp + 0x1dc]
mov ecx, dword [eax]
push ecx
je 0x5baf89
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 + 0x15c]
mov dword [ebx + 0x68], ecx
mov ecx, dword [esi + 4]
push edx
call fcn.005b3410
jmp 0x5bafa5
mov edx, dword [esi + 0x78]
mov ebx, dword [esp + 0x20]
mov edx, dword [edx + ebx + 0x18]
mov ecx, dword [esi + 4]
push edx
lea edx, [esp + 0x8c]
push edx
call fcn.005b36c0
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x54]
mov dword [esp + ebp*4 + 0x2c], eax
mov eax, dword [esp + 0x18]
inc ebp
inc eax
add edx, 0x1c
add edi, 0xd8
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x5baf16
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x5bb015
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x1d4]
lea ecx, [esi + 0x90]
push ecx
push ebp
lea edx, [esp + 0x34]
or edi, 1
push edx
mov dword [esp + 0x28], edi
mov edi, dword [ebx]
push eax
lea ecx, [esp + 0x90]
call fcn.005b86b0
push eax
mov ecx, ebx
call dword [edi + 4]
test al, al
jne 0x5bb015
xor bl, bl
jmp 0x5bb017
mov bl, 1
test byte [esp + 0x1c], 1
je 0x5bb051
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
and edx, 0xfffffffe
test eax, eax
mov dword [esp + 0x1c], edx
je 0x5bb051
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5bb051
test edi, edi
je 0x5bb051
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5bb06d
mov ecx, dword [esp + 0x1d8]
mov eax, dword [ecx]
inc dword [eax]
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x5bb06d
dec eax
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
inc edi
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], edi
call fcn.005b51d0
cmp edi, eax
jl 0x5bad90
mov ebp, dword [esp + 0x28]
inc ebp
cmp ebp, 2
mov dword [esp + 0x28], ebp
jl 0x5bac87
test ebx, ebx
je 0x5bb0ad
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x98]
cmp eax, ecx
je 0x5bb0c8
push eax
call fcn.004186c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x14