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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [esp + 0xa8]
lea esi, [esp + 0x3c]
lea ebx, [esp + 0x80]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], 0x607c20
mov dword [esp], esi
mov dword [esp + 0x58], 0x60f7dc
mov eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x60], 0x5a8ab0
mov dword [esp + 0x64], esp
mov dword [esp + 0x38], esi
call fcn.004cf190
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x7f]
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x40], 0xffffffff
call fcn.005a8000
sub esp, 8
cmp byte [esp + 0x7f], 0
je 0x5a88a0
mov ebx, dword [esp + 0x28]
movzx edx, byte [esp + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x2c], edx
mov eax, dword [eax - 0xc]
mov eax, dword [ebx + eax + 0x78]
mov ebx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 8]
cmp dword [ebx + 0xc], eax
jbe 0x5a8a5b
movzx eax, byte [eax]
mov edx, dword [esp + 0x28]
movsx edi, byte [esp + 0x18]
mov esi, dword [edx + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], esi
lea esi, [esi]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x14]
setne cl
cmp dword [esp + 0x2c], eax
lea ebx, [esi + 1]
setne dl
test cl, dl
je 0x5a8910
cmp ebx, dword [esp + 0xa4]
jge 0x5a8910
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa4]
sub edx, dword [esp + 0x14]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
sub edx, 1
mov ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
sub ecx, edi
cmp edx, ecx
cmovle ecx, edx
cmp ecx, 1
mov dword [esp + 0x18], ecx
jg 0x5a8950
mov edi, dword [esp + 0xa0]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa0]
mov byte [edi], al
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0xc]
add ebx, 1
mov dword [esp + 0x34], ebx
add dword [eax + 4], 1
mov eax, dword [esi + 8]
cmp eax, edx
jae 0x5a8a23
add eax, 1
mov dword [esi + 8], eax
cmp eax, edx
jae 0x5a8a73
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
movzx eax, byte [eax]
mov edx, dword [esi + 4]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x14], edx
jmp 0x5a87d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 6
call eax
nop
xor edx, edx
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jle 0x5a88b7
mov eax, dword [esp + 0xa0]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test eax, eax
jne 0x5a8901
or edx, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, dword [eax - 0xc]
or edx, dword [ecx + 0x14]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], edx
call fcn.005fbb80
sub esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [esp + 0x28]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test edx, edx
je 0x5a88e4
jmp 0x5a88c5
cmp eax, 0xffffffff
je 0x5a89f0
cmp dword [esp + 0x2c], eax
mov edx, 4
jne 0x5a88a2
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xc]
jae 0x5a888c
add eax, 1
mov dword [edx + 8], eax
xor edx, edx
jmp 0x5a88a2
mov eax, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memchr
test eax, eax
je 0x5a89b0
mov esi, dword [esp + 0x24]
sub eax, esi
mov edx, esi
mov dword [esp + 0x18], eax
jne 0x5a89b0
mov edi, dword [esp + 0x18]
add dword [esp + 0x14], edi
add dword [esp + 0xa0], edi
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, edi
mov edi, dword [esp + 0x28]
add eax, edx
cmp eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov dword [edi + 4], ebx
jae 0x5a8a00
movzx eax, byte [eax]
jmp 0x5a87d0
mov eax, dword [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
jmp 0x5a8976
mov edx, 2
jmp 0x5a88a2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 4
call eax
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 4]
mov dword [esp + 0x14], edx
jmp 0x5a87d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 1
call eax
cmp eax, 0xffffffff
jne 0x5a8aa1
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa0], eax
mov eax, 0xffffffff
jmp 0x5a87d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 5
call eax
jmp 0x5a87b6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 1
call eax
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov ebx, dword [ebx + 4]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x14], ebx
jmp 0x5a87d0
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x5a8866