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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, dword [ebp + 8]
mov eax, dword [0x742040]
xor eax, ebp
mov dword [esp + 0x98], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x60]
push 0x2fa
push 0x6d1c40
push 0x6d1d3a
push ebx
call fcn.004f2b50
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e8e00
cmp byte [esi + 0xb], 0
mov edi, esi
jns 0x48bdc6
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48bdfd
mov bl, 1
test al, 0x10
je 0x48bfca
lea ecx, [esp + 0x20]
call fcn.004e8e70
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea ebx, [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, esi
push ebx
call fcn.004f35f0
movsx eax, byte [esi + 0xb]
mov edx, esi
test eax, eax
jns 0x48be23
mov eax, dword [esi + 4]
mov edx, dword [esi]
test eax, eax
js 0x48bf3c
sete cl
mov dword [esp + 8], edx
test edx, edx
setne dl
or dl, cl
je 0x48bf43
movsx ecx, byte [esp + 0x1f]
test ecx, ecx
cmovs ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmovns edx, ebx
test ecx, ecx
js 0x48bf3c
sete bl
test edx, edx
setne bh
or bh, bl
je 0x48bf43
test ecx, ecx
sete bl
cmp ecx, eax
setne bh
or bh, bl
je 0x48bf52
cmp ecx, eax
lea ebx, [esp + 0x14]
je 0x48bf8d
push dword [ebp + 0xc]
push ebx
call fcn.0048bd60
add esp, 8
test al, al
je 0x48bfaf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x48beb9
lea ecx, [esp + 0x14]
call fcn.004f2fc0
jmp 0x48bddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
cmp eax, 0xb7
jne 0x48bfb6
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x50]
push 0x239
push 0x6d1c40
push 0x6d1c8f
push eax
call fcn.004f2b50
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x54]
push eax
call fcn.004e8e00
cmp byte [esi + 0xb], 0
jns 0x48bf16
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.004e8e70
cmp esi, 0xffffffff
je 0x48bfb6
and esi, 0x10
jne 0x48beab
jmp 0x48bfb6
push 0x6bcfdb
jmp 0x48bf48
push 0x6bd0c2
push 0x6bd0bf
call fcn.0057cbd0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0xc]
movzx ebx, word [edx + ecx*2]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp bx, word [ecx + edi*2]
mov edi, dword [esp + 0x10]
lea ebx, [esp + 0x14]
jne 0x48be88
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp eax, ecx
jne 0x48bf5e
mov eax, 0xfffffffc
mov dword [esp + 8], 2
cmp dword [ebp + 0xc], 0
je 0x48bfa5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x48beab
cmp dword [ebp + 0xc], 0
je 0x48bfa5
push dword [esp + 8]
call fcn.0048aac0
add esp, 4
jmp 0x48bfa0
cmp dword [ebp + 0xc], 0
je 0x48bfd9
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x48bddc