Function at 0x4bb140
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c44d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov eax, 0x5e7414
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
lea edi, [esi + 0x44]
mov ecx, 0x5a1
xor eax, eax
mov dword [esi], 0x5e7410
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 2
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax*4 + 2]
mov dword [esi + 0x16d0], ecx
call fcn.0059ec17
mov dword [esi + 0x16d8], ebx
push ebx
lea ecx, [ebp + 8]
mov dword [esi + 0x16cc], 0xffffffff
mov dword [esi + 0x16dc], ebx
call fcn.0059ec2a
mov edi, dword [eax + 8]
push ebx
lea ecx, [ebp + 8]
call fcn.0059ec2a
mov eax, dword [eax + 4]
lea ecx, [edi + edi*2]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
lea ecx, [ecx + ecx*4]
mov word [ebp - 0x30], bx
lea edx, [eax + ecx*4]
mov dword [esi + 0x16c8], edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.004bba00
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4bb232
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bb3d8
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4bb24c
lea eax, [ebp - 0x30]
push 0x65e408
push eax
call fcn.0058aa8f
add esp, 8
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4bb3d8
mov ecx, dword [0x682f9c]
mov dword [ebp - 0x18], ecx
push 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.005a5c1a
mov edx, dword [ebp - 0x14]
mov edi, eax
push edx
push 0x10
push edi
call fcn.0058ac9a
add esp, 0xc
test eax, eax
je 0x4bb3c0
push edi
call fcn.00589718
mov ecx, esp
mov dword [ebp - 0x20], esp
mov dword [ecx], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.0044f680
mov ecx, dword [ebp - 0x1c]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x91a2b3c5
mov edi, edx
imul ecx
add edx, ecx
mov dword [ebp - 0x20], edi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edi + edi*4]
mov dword [ebp - 0x28], edx
lea edx, [eax + eax*8]
mov eax, 0x88888889
shl edx, 5
mov edi, edx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x16d0]
sub edx, edi
cmp edx, eax
jge 0x4bb3c0
cmp dword [ebp - 0x20], ebx
jne 0x4bb3c0
mov ecx, dword [esi + 0x16c8]
sub ecx, eax
mov dword [esi + 0x16cc], ecx
jns 0x4bb332
add ecx, 0x5a1
mov dword [esi + 0x16cc], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x44]
push ecx
push 1
push 0x1684
push eax
call fcn.0058bb05
add esp, 0x10
cmp eax, ebx
jne 0x4bb35d
xor eax, eax
cmp eax, 0x5a1
jge 0x4bb35d
mov dword [esi + eax*4 + 0x44], ebx
inc eax
jmp 0x4bb34f
mov ecx, esi
call fcn.004bb530
mov edx, dword [esi + 0x16d8]
mov eax, dword [esi + 0x16dc]
or edx, eax
je 0x4bb3c0
mov ecx, dword [esi + 0x16cc]
mov eax, ecx
cmp eax, 0x5a1
jge 0x4bb397
cmp dword [esi + eax*4 + 0x44], ebx
jne 0x4bb392
mov dword [esi + 0x16cc], eax
inc eax
jmp 0x4bb37c
cmp eax, 0x5a1
jne 0x4bb3c0
cmp ecx, ebx
je 0x4bb3c0
cmp dword [esi + 0x16c4], ebx
jne 0x4bb3c0
mov dword [esi + 0x16cc], ebx
xor eax, eax
cmp eax, ecx
jge 0x4bb3c0
cmp dword [esi + eax*4 + 0x44], ebx
jne 0x4bb3c0
mov dword [esi + 0x16cc], eax
inc eax
jmp 0x4bb3ad
mov eax, dword [ebp - 0x14]
push eax
call fcn.0058a8a8
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005a584d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x4bb3f1
mov eax, dword [esi + 0x16cc]
mov dword [ebp - 4], 2
cmp eax, 0xffffffff
jne 0x4bb42a
push ebx
lea ecx, [ebp + 8]
call fcn.0059ec2a
mov edi, dword [eax + 8]
push ebx
lea ecx, [ebp + 8]
call fcn.0059ec2a
mov edx, dword [eax + 4]
lea ecx, [edi + edi*2]
lea ecx, [ecx + ecx*4]
lea eax, [edx + ecx*4]
mov dword [esi + 0x16cc], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4