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

Disassembly:
push 0xffffffffffffffff
push 0x4b7540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
push 0x4b95e0
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0041f940
add esp, 0xc
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x44], ebx
jne 0x427876
mov eax, 0x4b9360
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42799a
test al, 0x10
jne 0x427a11
xor ebp, ebp
push ebp
lea ecx, [esp + 0x14]
push str._08X
push ecx
call fcn.004a6c24
mov dl, byte [esi]
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
push ebx
call fcn.004061f0
mov eax, dword [0x4b9364]
lea ecx, [esp + 0x1c]
push eax
push ebx
push esi
call fcn.00405de0
push 0x7e
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.00405d10
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00407cb0
mov edi, 0x4b95e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b95e0
lea ecx, [esp + 0x24]
call fcn.00407cb0
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x42791e
mov eax, 0x4b9360
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x427975
test al, 0x10
jne 0x4279ec
cmp ebp, 0xffffffff
mov byte [esp + 0x44], bl
je 0x427a44
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x427963
mov al, byte [ecx - 1]
cmp al, bl
je 0x427959
cmp al, 0xff
je 0x427959
dec al
mov byte [ecx - 1], al
jmp 0x427963
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
inc ebp
jmp 0x427890
mov edx, dword [0x4b9364]
lea eax, [esp + 0x1c]
push edx
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00405de0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.004061f0
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4279a7
mov eax, 0x4b9360
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x427a11
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x427a81
mov al, byte [ecx - 1]
cmp al, bl
je 0x427a77
cmp al, 0xff
je 0x427a77
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [0x4b9364]
lea edx, [esp + 0x1c]
push ecx
push ebx
push edx
lea ecx, [esp + 0x38]
call fcn.00405de0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call fcn.004061f0
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
je 0x427a2a
mov eax, dword [0x4b9364]
lea edx, [esp + 0x2c]
push eax
push ebx
push edx
call fcn.00405de0
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x427aa0
mov al, byte [ecx - 1]
cmp al, bl
je 0x427a96
cmp al, 0xff
je 0x427a96
dec al
mov byte [ecx - 1], al
jmp 0x427aa0
push 1
lea ecx, [esp + 0x20]
call fcn.004061f0
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
call fcn.004061f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
dec ecx
push ecx
call fcn.004a5c41
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret