Function at 0x5b8700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x609cb2
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
lea esi, [esp + 0x38]
mov edi, ecx
call fcn.005d1eb0
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
jne 0x5b876c
test edx, edx
jne 0x5b876c
test esi, esi
jne 0x5b876c
test eax, eax
je 0x5b880a
lea esi, [esp + 0x48]
mov ecx, edi
call fcn.005d1ba0
mov dword [esp + 0x70], 0
cmp dword [esp + 0x5c], 0
jne 0x5b87c4
sub esp, 0x1c
mov esi, esp
mov ecx, edi
mov dword [esp + 0x34], esp
call fcn.005d1ad0
push ecx
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.005d1d20
add esp, 4
push eax
mov ecx, edi
call fcn.005d1870
push eax
mov byte [esp + 0x94], 0
call fcn.0047d6a0
add esp, 0x24
jmp 0x5b87f2
cmp dword [esp + 0x60], 8
mov ebx, dword [esp + 0x4c]
jae 0x5b87d3
lea ebx, [esp + 0x4c]
mov esi, edi
call fcn.005d1c70
push eax
push ecx
mov ecx, edi
call fcn.005d1d20
add esp, 4
mov ecx, eax
mov edx, ebx
call fcn.0047d630
add esp, 4
mov esi, eax
test esi, esi
jne 0x5b8811
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0xffffffff
call dword [0x6105a0]
xor eax, eax
jmp 0x5b8ac0
mov ebp, dword [esi + 4]
mov edi, dword [esi + 8]
add ebp, ebp
add ebp, ebp
imul edi, ebp
push edi
mov dword [esp + 0x20], ebp
call fcn.005e693a
add esp, 4
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push edi
push eax
call dword [0x61009c]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
push edx
push 0
push 0
call dword [0x6100d0]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
jle 0x5b88cb
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jle 0x5b88be
mov edi, ebx
imul edi, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x24]
cmp byte [edi + eax], 0
jne 0x5b88b2
cmp byte [edi + eax + 1], 0
jne 0x5b88b2
cmp byte [edi + eax + 2], 0
jne 0x5b88b2
cmp byte [edi + eax + 3], 0
jne 0x5b88b2
lea eax, [ebx + 1]
push eax
lea ecx, [ebp + 1]
push ecx
push ebx
push ebp
call dword [0x6100d0]
test eax, eax
je 0x5b88b2
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [0x6100d8]
add ebp, 1
add edi, 4
cmp ebp, dword [esp + 0x28]
jl 0x5b8870
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jl 0x5b885a
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jle 0x5b8959
mov eax, dword [esi + 4]
mov edi, eax
sub edi, dword [esp + 0x30]
cmp edi, eax
jge 0x5b894c
mov edx, ebx
imul edx, ebp
lea ebp, [edx + edi*4]
lea esp, [esp]
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp], 0
jne 0x5b893d
cmp byte [eax + ebp + 1], 0
jne 0x5b893d
cmp byte [eax + ebp + 2], 0
jne 0x5b893d
cmp byte [eax + ebp + 3], 0
jne 0x5b893d
mov ecx, dword [esp + 0x78]
mov eax, edi
sub eax, dword [esi + 4]
lea edx, [ebx + 1]
add eax, ecx
push edx
lea ecx, [eax + 1]
push ecx
push ebx
push eax
call dword [0x6100d0]
test eax, eax
je 0x5b893d
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [0x6100d8]
add edi, 1
add ebp, 4
cmp edi, dword [esi + 4]
jl 0x5b88f0
mov ebp, dword [esp + 0x1c]
add ebx, 1
cmp ebx, dword [esp + 0x2c]
jl 0x5b88d7
mov eax, dword [esi + 8]
mov ebx, eax
sub ebx, dword [esp + 0x34]
cmp ebx, eax
jge 0x5b89ef
mov eax, ebx
imul eax, ebp
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x28], edi
jle 0x5b89e1
mov ebp, eax
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp], 0
jne 0x5b89cd
cmp byte [eax + ebp + 1], 0
jne 0x5b89cd
cmp byte [eax + ebp + 2], 0
jne 0x5b89cd
cmp byte [eax + ebp + 3], 0
jne 0x5b89cd
mov eax, dword [esp + 0x7c]
mov edx, ebx
sub edx, dword [esi + 8]
add eax, edx
lea ecx, [eax + 1]
push ecx
lea edx, [edi + 1]
push edx
push eax
push edi
call dword [0x6100d0]
test eax, eax
je 0x5b89cd
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [0x6100d8]
add edi, 1
add ebp, 4
cmp edi, dword [esp + 0x28]
jl 0x5b8980
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ebx, 1
add eax, ebp
cmp ebx, dword [esi + 8]
mov dword [esp + 0x18], eax
jl 0x5b8973
mov eax, dword [esi + 8]
mov ebx, eax
sub ebx, dword [esp + 0x34]
cmp ebx, eax
jge 0x5b8a9d
mov ecx, ebx
imul ecx, ebp
mov dword [esp + 0x18], ecx
lea esp, [esp]
mov eax, dword [esi + 4]
mov edi, eax
sub edi, dword [esp + 0x30]
cmp edi, eax
jge 0x5b8a8b
lea ebp, [ecx + edi*4]
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp], 0
jne 0x5b8a78
cmp byte [eax + ebp + 1], 0
jne 0x5b8a78
cmp byte [eax + ebp + 2], 0
jne 0x5b8a78
cmp byte [eax + ebp + 3], 0
jne 0x5b8a78
mov ecx, dword [esp + 0x7c]
mov eax, ebx
sub eax, dword [esi + 8]
mov edx, edi
sub edx, dword [esi + 4]
add eax, ecx
mov ecx, dword [esp + 0x78]
add ecx, edx
lea edx, [eax + 1]
push edx
lea edx, [ecx + 1]
push edx
push eax
push ecx
call dword [0x6100d0]
test eax, eax
je 0x5b8a78
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
call dword [0x6100d8]
add edi, 1
add ebp, 4
cmp edi, dword [esi + 4]
jl 0x5b8a20
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add ebx, 1
add ecx, ebp
cmp ebx, dword [esi + 8]
mov dword [esp + 0x18], ecx
jl 0x5b8a10
mov eax, dword [esp + 0x24]
push eax
call fcn.005e6a6c
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0xffffffff
call dword [0x6105a0]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005e693f
add esp, 0x60
ret