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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x546e7b
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 0x10], 0
je 0x42edaf
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x42eba8
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42ed0c
cmp dword [0x5cb0f0], 8
mov eax, 0x5cb0dc
mov edi, dword [ebx + 0x10]
mov esi, ebx
cmovae eax, dword [0x5cb0dc]
cmp dword [ebx + 0x14], 8
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ebx
jb 0x42ebe0
mov esi, dword [ebx]
mov dword [ebp - 0x10], esi
cmp dword [0x5cb0ec], 0
je 0x42ece4
test edi, edi
je 0x42ece4
push 0x100
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.00518890
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [0x5cb0ec]
dec edi
lea eax, [ecx + eax*2]
push eax
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.0042e620
test al, al
jne 0x42ec83
or eax, 0xffffffff
cmp edi, eax
cmovb eax, edi
lea ecx, [esi + eax*2]
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov dword [ebp - 0x14], edx
nop dword [eax]
movzx edi, word [ecx]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov esi, dword [0x5cb0ec]
movzx eax, ax
cmp ax, di
je 0x42ec68
cmp esi, 1
je 0x42ec6c
movzx eax, word [edx + 2]
add edx, 2
dec esi
cmp ax, di
jne 0x42ec56
test edx, edx
jne 0x42ec7e
cmp ecx, dword [ebp - 0x10]
je 0x42ec79
mov eax, dword [ebp + 8]
sub ecx, 2
jmp 0x42ec40
or ecx, 0xffffffff
jmp 0x42ecb2
sub ecx, dword [ebp - 0x10]
jmp 0x42ecb0
or eax, 0xffffffff
mov edx, 0x100
cmp edi, eax
cmovb eax, edi
lea ecx, [esi + eax*2]
movzx eax, word [ecx]
cmp ax, dx
jae 0x42eca5
cmp byte [ebp + eax - 0x1b0], 0
jne 0x42ecae
cmp ecx, esi
je 0x42ece4
sub ecx, 2
jmp 0x42ec93
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42ece4
push ecx
push 0
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00431470
push eax
mov dword [ebp - 4], 0
call fcn.0042eb70
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416700
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x42ecf6
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42edc0
jmp 0x42edaf
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x42ed16
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42ed5b
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004bcb00
add esp, 8
push eax
sub esp, 8
mov dword [ebp - 4], 6
mov ecx, esp
push str.Failed_to_get_attribute_of_
call fcn.00424730
lea eax, [ebp - 0x50]
push eax
call fcn.00426210
add esp, 0x10
mov byte [ebp - 4], 7
jmp 0x42ee20
test al, 0x10
jne 0x42edaf
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.004bcb00
add esp, 8
push eax
sub esp, 8
mov dword [ebp - 4], 8
mov ecx, esp
push str.Path__is_not_a_directory
call fcn.00424730
lea eax, [ebp - 0xb0]
push eax
call fcn.00426210
add esp, 0x10
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.00415f60
push 0x5bd8e4
lea eax, [ebp - 0x38]
jmp 0x42ee31
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00473fc0
mov esi, eax
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 1
push ebx
push eax
call fcn.004bcb00
add esp, 0x14
push esi
push eax
sub esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
push str.Failed_to_create_directory___error:_
call fcn.00424730
lea eax, [ebp - 0x68]
push eax
call fcn.00426260
add esp, 0x14
lea ecx, [ebp - 0x80]
call fcn.004166b0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.004166b0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.00415f60
push 0x5bd8e4
lea eax, [ebp - 0x20]
push eax
call fcn.00518295
int3