Function at 0x48eb60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fa7e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0049dc5a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x48ebab
push 0x80004005
call fcn.00486f80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jle 0x48ecbb
push 0x5c
push eax
call fcn.004b509d
mov edi, eax
add esp, 8
mov eax, dword [ebp + 8]
test edi, edi
je 0x48ecbb
sub edi, eax
cmp edi, ebx
je 0x48ecbe
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0048af00
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.00486e20
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ec2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.0048afd0
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x48ec99
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x48ec8a
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x48ec8a
push edx
call fcn.00486fe0
add esp, 4
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x48ec82
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x48ec96
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00487e40
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ecca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48ecca
or edi, 0xffffffff
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00486e20
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48ece2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp edi, 0xffffffff
je 0x48ed2d
mov ebx, dword [esi - 0xc]
lea edi, [ebx + 1]
test edi, edi
js 0x48ed23
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x48ed0e
push edi
lea ecx, [ebp - 0x10]
call fcn.00487c50
mov esi, dword [ebp - 0x10]
mov byte [ebx + esi], 0x5c
cmp edi, dword [esi - 8]
jg 0x48ed23
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
jmp 0x48ebbc
push 0x80070057
call fcn.00486f80
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48ed4a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x48ed6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4