Function at 0x4b5160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x728]
call fcn.004bd990
mov eax, dword [ebp + 0x44]
mov ecx, 8
cmp dword [ebp + 0x58], ecx
jae 0x4b5194
lea eax, [ebp + 0x44]
mov edi, dword [ebp + 0x28]
cmp dword [ebp + 0x3c], ecx
jae 0x4b519f
lea edi, [ebp + 0x28]
push ecx
mov ecx, esp
push eax
call fcn.00470300
push ecx
mov ecx, esp
push edi
call fcn.00470300
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x728]
call fcn.004bdb50
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, al
je 0x4b52be
lea eax, [ebp - 0x720]
lea edx, [eax + 2]
jmp 0x4b51e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b51e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x720]
push eax
mov ecx, esi
call fcn.00403060
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x4b520b
mov eax, dword [edi]
jmp 0x4b520d
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4b525b
cmp dword [esi + 0x18], 8
jb 0x4b521f
mov eax, dword [edi]
jmp 0x4b5221
mov eax, edi
push eax
call ebx
test al, 0x10
je 0x4b525b
push 1
push 0xffffffffffffffff
push 0x50f2fc
mov ecx, esi
call fcn.00461050
mov ecx, dword [esi + 0x14]
dec ecx
cmp eax, ecx
je 0x4b524c
push 0x50f2fc
mov ecx, esi
call fcn.0046e470
push 0xffffffffffffffff
push 0
lea edx, [ebp + 8]
push edx
mov ecx, esi
call fcn.00468720
cmp dword [esi + 0x18], 8
jb 0x4b5265
mov eax, dword [edi]
jmp 0x4b5267
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4b52be
cmp dword [esi + 0x18], 8
jb 0x4b5277
mov edi, dword [edi]
push edi
call ebx
test al, 0x10
jne 0x4b52be
lea ecx, [ebp - 0x728]
call fcn.004bd9b0
lea ecx, [ebp + 8]
call fcn.00402d10
lea ecx, [ebp + 0x24]
call fcn.00402d10
lea ecx, [ebp + 0x40]
call fcn.00402d10
lea ecx, [ebp + 0x5c]
call fcn.00402d10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 0x74
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x5c]
push eax
mov ecx, esi
call fcn.00402df0
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x4b52da
mov eax, dword [edi]
jmp 0x4b52dc
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4b532a
cmp dword [esi + 0x18], 8
jb 0x4b52ee
mov eax, dword [edi]
jmp 0x4b52f0
mov eax, edi
push eax
call ebx
test al, 0x10
je 0x4b532a
push 1
push 0xffffffffffffffff
push 0x50f2fc
mov ecx, esi
call fcn.00461050
mov ecx, dword [esi + 0x14]
dec ecx
cmp eax, ecx
je 0x4b531b
push 0x50f2fc
mov ecx, esi
call fcn.0046e470
push 0xffffffffffffffff
push 0
lea edx, [ebp + 8]
push edx
mov ecx, esi
call fcn.00468720
cmp dword [esi + 0x18], 8
jb 0x4b5334
mov eax, dword [edi]
jmp 0x4b5336
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
je 0x4b53e9
cmp dword [esi + 0x18], 8
jb 0x4b534a
mov edi, dword [edi]
push edi
call ebx
test al, 0x10
jne 0x4b53e9
lea ecx, [ebp - 0x728]
call fcn.004bd9b0
mov edi, 8
cmp dword [ebp + 0x20], edi
jb 0x4b5376
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea481
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov esi, 7
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0xc], cx
cmp dword [ebp + 0x3c], edi
jb 0x4b539a
mov edx, dword [ebp + 0x28]
push edx
call fcn.004ea481
add esp, 4
xor eax, eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x38], ebx
mov word [ebp + 0x28], ax
cmp dword [ebp + 0x58], edi
jb 0x4b53b7
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.004ea481
add esp, 4
xor edx, edx
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x54], ebx
mov word [ebp + 0x44], dx
cmp dword [ebp + 0x74], edi
jb 0x4b53d4
mov eax, dword [ebp + 0x60]
push eax
call fcn.004ea481
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 0x74
xor ebx, ebx
push ebx
push 0x52a4dc
mov ecx, esi
call fcn.00403060
lea ecx, [ebp - 0x728]
call fcn.004bd9b0
mov edi, 8
cmp dword [ebp + 0x20], edi
jb 0x4b5419
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004ea481
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0xc], dx
cmp dword [ebp + 0x3c], edi
jb 0x4b543b
mov eax, dword [ebp + 0x28]
push eax
call fcn.004ea481
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x38], ebx
mov word [ebp + 0x28], cx
cmp dword [ebp + 0x58], edi
jb 0x4b5458
mov edx, dword [ebp + 0x44]
push edx
call fcn.004ea481
add esp, 4
xor eax, eax
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x54], ebx
mov word [ebp + 0x44], ax
cmp dword [ebp + 0x74], edi
jb 0x4b5475
mov ecx, dword [ebp + 0x60]
push ecx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 0x74