Function at 0x5b3450
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5f99a9
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb4]
mov esi, dword [ebx + 8]
sub esi, dword [ebx]
mov eax, dword [esp + 0xb0]
mov edi, ecx
push edi
lea ecx, [esp + 0x84]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x20], esi
call dword [0x610498]
xor ebp, ebp
mov dword [esp + 0xa8], ebp
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0xc]
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, ebx
and eax, 4
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x78], eax
jne 0x5b351a
test bl, 1
jne 0x5b351a
test ebx, 0x400
je 0x5b374c
test ebx, 0x400
je 0x5b352e
cmp esi, ebp
jne 0x5b352e
mov dword [esp + 0x1c], 0x270f
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x84]
push 0xd
push eax
mov byte [esp + 0xb4], 1
call fcn.00520480
mov esi, dword [esp + 0x70]
add esp, 0xc
cmp esi, ebp
jne 0x5b356f
mov dword [esp + 0x18], ebp
jmp 0x5b358c
mov ecx, dword [esp + 0x68]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
jbe 0x5b36bc
mov dword [esp + 0x24], ebp
cmp esi, ebp
je 0x5b35c1
mov ecx, dword [esp + 0x68]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5b35cb
call dword [0x6105e8]
mov esi, dword [esp + 0x64]
cmp esi, ebp
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + esi + 0x14]
je 0x5b35f4
mov ecx, dword [esp + 0x68]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5b35fe
call dword [0x6105e8]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
cmp dword [eax + esi + 0x18], 8
jb 0x5b360f
mov ebp, dword [eax + esi + 4]
jmp 0x5b3613
lea ebp, [eax + esi + 4]
test ebx, ebx
je 0x5b369b
mov edx, dword [esp + 0x1c]
add edx, 1
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x70]
xor esi, esi
cmp eax, dword [esp + 0x1c]
jle 0x5b3667
mov edi, ebx
cmp esi, ebx
jae 0x5b3663
mov ecx, dword [esp + 0x28]
push 0x400
lea eax, [esp + 0x34]
push eax
push edi
push ebp
push ecx
call dword [0x6108a8]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
add esi, 1
sub edi, 1
cmp eax, dword [esp + 0x1c]
jg 0x5b3634
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
sub esi, 1
add edx, dword [esp + 0xbc]
sub ebx, esi
add dword [esp + 0x14], edx
cmp dword [esp + 0x2c], eax
lea ebp, [ebp + ebx*2]
mov ebx, esi
jg 0x5b368f
mov dword [esp + 0x2c], eax
test esi, esi
jne 0x5b3626
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
add edi, 1
add eax, 0x1c
xor ebp, ebp
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
jb 0x5b35a0
mov ebx, dword [esp + 0xb8]
cmp dword [esp + 0x78], ebp
je 0x5b36e5
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
sub eax, ecx
sub eax, dword [esp + 0x14]
and ebx, 0xfffffffb
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x54], ecx
test bl, 1
je 0x5b370d
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
sub eax, ecx
sub eax, dword [esp + 0x2c]
and ebx, 0xfffffffe
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x50], ecx
test ebx, 0x400
mov byte [esp + 0xa8], 0
je 0x5b373e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x60]
push eax
call fcn.00404430
jmp 0x5b395d
lea ecx, [esp + 0x60]
push ecx
call fcn.00404430
mov edi, dword [esp + 0x74]
push edi
lea ecx, [esp + 0x84]
call dword [0x610598]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x84]
push 0xd
push eax
mov byte [esp + 0xb4], 2
call fcn.00520480
mov esi, dword [esp + 0x50]
add esp, 0xc
cmp esi, ebp
jne 0x5b3793
mov dword [esp + 0x18], ebp
jmp 0x5b37b0
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
jbe 0x5b3921
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
test esi, esi
je 0x5b37e9
mov ebx, dword [esp + 0x48]
sub ebx, esi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5b37f7
call dword [0x6105e8]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
cmp dword [esi + ebp + 0x18], 8
jb 0x5b3804
mov ebp, dword [esi + ebp + 4]
jmp 0x5b3808
lea ebp, [esi + ebp + 4]
test esi, esi
je 0x5b3829
mov ebx, dword [esp + 0x48]
sub ebx, esi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5b3837
call dword [0x6105e8]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + esi + 0x14]
test ebx, ebx
je 0x5b38f0
mov edx, dword [esp + 0x1c]
lea eax, [edx + 1]
xor esi, esi
cmp eax, edx
jle 0x5b3889
mov edi, ebx
cmp esi, ebx
jae 0x5b3885
mov ecx, dword [esp + 0x28]
push 0x400
lea eax, [esp + 0x34]
push eax
push edi
push ebp
push ecx
call dword [0x6108a8]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
add esi, 1
sub edi, 1
cmp eax, dword [esp + 0x1c]
jg 0x5b3856
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
add ecx, dword [esp + 0xbc]
lea eax, [edx + ecx*2]
cmp eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x50]
jg 0x5b390b
or eax, 0x20
push eax
push ecx
sub esi, 1
mov edi, ebx
sub edi, esi
push edi
push ebp
push edx
call dword [0x6108a8]
mov ecx, dword [esp + 0x3c]
mov eax, ecx
sub eax, dword [esp + 0x34]
lea ebp, [ebp + edi*2]
add eax, dword [esp + 0xbc]
mov ebx, esi
add dword [esp + 0x54], eax
test esi, esi
jne 0x5b3847
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x20]
add dword [esp + 0x14], 0x1c
add edi, 1
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x20], edi
jae 0x5b391f
mov ebp, dword [esp + 0x14]
jmp 0x5b37c8
or eax, 0x8020
push eax
push ecx
push ebx
push ebp
push edx
call dword [0x6108a8]
mov esi, dword [esp + 0x44]
xor ebp, ebp
cmp esi, ebp
mov byte [esp + 0xa8], 0
je 0x5b3951
mov edi, dword [esp + 0x48]
cmp esi, edi
je 0x5b3948
mov ecx, esi
call dword [0x6105a0]
add esi, 0x1c
cmp esi, edi
jne 0x5b3935
mov esi, dword [esp + 0x44]
push esi
call fcn.005e6954
add esp, 4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
lea ecx, [esp + 0x80]
mov dword [esp + 0xa8], 0xffffffff
call dword [0x6105a0]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.005e693f
add esp, 0x98
ret