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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x280]
mov dword [ebp - 0x10], esp
cmp eax, 2
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
jne 0x4b81c3
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
mov ecx, ebx
call fcn.004b7a30
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b81b7
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x5c8008]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.0053afda
mov ecx, dword [0x5c7bf4]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 4
push ecx
push edx
mov ecx, ebx
call fcn.005401b5
cmp eax, 6
jne 0x4b8180
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + edx - 1]
cmp cl, 0x5c
je 0x4b8098
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.005425c1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
jmp 0x4b80a8
mov ebx, dword [ebp - 0x24]
inc esi
lea ecx, [ebp - 0x18]
push esi
push 0x5c
call fcn.00542693
mov esi, eax
cmp esi, 0xffffffff
je 0x4b81ab
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.0053abba
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x11]
call fcn.005421be
mov al, byte [ebp - 0x11]
test al, al
je 0x4b80a8
lea ecx, [ebp - 0x20]
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.0053abba
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x20]
sete bl
call fcn.005421be
test bl, bl
je 0x4b80a5
mov edx, dword [0x5c2a74]
mov dword [ebp - 0x20], edx
push 0
lea eax, [ebp - 0x2c]
push 0
push eax
push 0x400
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x5c8004]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
call fcn.0053afda
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [0x5c7bf4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push 0x30
push edx
push eax
call fcn.005401b5
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005421be
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, dword [0x5c2a74]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x5c]
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0x298]
mov esi, dword [eax + 0x28c]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov eax, dword [ebx + 0x5c]
add esp, 0xc
lea edx, [ebp - 0x28]
mov ecx, dword [eax + 0x290]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov eax, dword [ebx + 0x5c]
add esp, 0xc
mov cl, byte [eax + 0x2a1]
mov dl, byte [eax + 0x294]
mov byte [ebp - 0x13], cl
mov ecx, ebx
mov byte [ebp - 0x12], dl
call fcn.004b7c00
mov eax, dword [ebx + 0x5c]
cmp esi, dword [eax + 0x28c]
jne 0x4b8263
cmp esi, 2
jne 0x4b8267
mov eax, dword [eax + 0x290]
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.00527a11
add esp, 8
test eax, eax
jne 0x4b8263
mov ecx, dword [ebx + 0x5c]
mov dl, byte [ebp - 0x12]
cmp dl, byte [ecx + 0x294]
je 0x4b8267
mov byte [ebp - 0x11], 1
mov eax, dword [ebx + 0x5c]
mov cl, byte [ebp - 0x13]
cmp cl, byte [eax + 0x2a1]
jne 0x4b8280
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x4b8360
mov ecx, dword [eax + 0xb0]
mov byte [ebp - 0x11], 0
cmp ecx, 0x3e8
jle 0x4b82b3
mov edx, dword [eax + 0x410]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 4
push 0x1436
push 0x111
push edx
call edi
mov byte [ebp - 0x11], 1
jmp 0x4b82b9
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x5c]
mov byte [ebp - 4], 6
add ecx, 0xfc
call fcn.00519710
xor esi, esi
mov ecx, dword [ebx + 0x5c]
cmp esi, dword [ecx + 0xb0]
jge 0x4b831c
push esi
call fcn.0046ae30
mov al, byte [ebp - 0x11]
test al, al
je 0x4b8310
mov ecx, dword [ebx + 0x5c]
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ecx + 0xb0]
test eax, eax
jle 0x4b8310
push eax
mov eax, dword [ecx + 0x410]
push 0x143e
push 0x111
push eax
call edi
inc esi
jmp 0x4b82cd
mov ecx, dword [ebx + 0x5c]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0x1437
mov edx, dword [ecx + 0x410]
push 0x111
push edx
mov dword [ebp - 4], 5
call esi
mov al, byte [ebp - 0x11]
test al, al
je 0x4b8360
mov eax, dword [ebx + 0x5c]
push 0
push 0x143d
push 0x111
mov ecx, dword [eax + 0x408]
push ecx
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.005421be
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret