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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5577d8
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 0x4b0343
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
mov ecx, ebx
call fcn.004afbb0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b0337
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x5bb3b0]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.0053091a
mov ecx, dword [0x5baf9c]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 4
push ecx
push edx
mov ecx, ebx
call fcn.00535af8
cmp eax, 6
jne 0x4b0300
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 0x4b0218
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00537f07
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
jmp 0x4b0228
mov ebx, dword [ebp - 0x24]
inc esi
lea ecx, [ebp - 0x18]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x4b032b
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.005304fa
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.00537b04
mov al, byte [ebp - 0x11]
test al, al
je 0x4b0228
lea ecx, [ebp - 0x20]
push esi
push ecx
lea ecx, [ebp - 0x18]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x20]
sete bl
call fcn.00537b04
test bl, bl
je 0x4b0225
mov edx, dword [0x5b5ecc]
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 [0x5bb3ac]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [0x5baf9c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push 0x30
push edx
push eax
call fcn.00535af8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00537b04
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
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.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, dword [0x5b5ecc]
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 0x597ddc
push edx
call fcn.0053091a
mov eax, dword [ebx + 0x5c]
add esp, 0xc
lea edx, [ebp - 0x28]
mov ecx, dword [eax + 0x290]
push ecx
push 0x597ddc
push edx
call fcn.0053091a
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.004afd80
mov eax, dword [ebx + 0x5c]
cmp esi, dword [eax + 0x28c]
jne 0x4b03e3
cmp esi, 2
jne 0x4b03e7
mov eax, dword [eax + 0x290]
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0051d3f7
add esp, 8
test eax, eax
jne 0x4b03e3
mov ecx, dword [ebx + 0x5c]
mov dl, byte [ebp - 0x12]
cmp dl, byte [ecx + 0x294]
je 0x4b03e7
mov byte [ebp - 0x11], 1
mov eax, dword [ebx + 0x5c]
mov cl, byte [ebp - 0x13]
cmp cl, byte [eax + 0x2a1]
jne 0x4b0400
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x4b04e0
mov ecx, dword [eax + 0xb0]
mov byte [ebp - 0x11], 0
cmp ecx, 0x3e8
jle 0x4b0433
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 0x4b0439
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x5c]
mov byte [ebp - 4], 6
add ecx, 0xfc
call fcn.0050f1a0
xor esi, esi
mov ecx, dword [ebx + 0x5c]
cmp esi, dword [ecx + 0xb0]
jge 0x4b049c
push esi
call fcn.004655c0
mov al, byte [ebp - 0x11]
test al, al
je 0x4b0490
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 0x4b0490
push eax
mov eax, dword [ecx + 0x410]
push 0x143e
push 0x111
push eax
call edi
inc esi
jmp 0x4b044d
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 0x4b04e0
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.00537b04
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00537b04
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