Function at 0x42db70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x20], eax
cmp byte [ebx + 0xb], 0
mov edi, ebx
jns 0x42db94
mov edi, dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42dbc2
test al, 0x10
jne 0x42dc97
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.0042dda0
add esp, 0xc
xor ebx, ebx
jmp 0x42dd6e
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0xb]
mov ecx, ebx
test al, al
jns 0x42dbdf
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
add eax, eax
test eax, eax
je 0x42dc32
movzx edx, word [ecx + eax - 2]
add eax, 0xfffffffe
cmp dx, 0x5c
je 0x42dbf9
cmp dx, 0x2f
jne 0x42dbe1
cmp eax, 0xfffffffe
je 0x42dc32
sar eax, 1
lea edx, [ebx + 0xc]
lea esi, [esp + 4]
mov ecx, esi
push edx
push eax
push 0
push ebx
call fcn.00423a90
movsd xmm0, qword [esi]
lea eax, [esp + 0x10]
movsd qword [eax], xmm0
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
push eax
call fcn.0042db70
add esp, 4
test al, al
je 0x42dcb1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x42dd5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x42dd4a
push edi
call fcn.00488da9
add esp, 4
cmp eax, 0x7ffffff0
jae 0x42dd90
mov ecx, eax
cmp eax, 5
mov dword [esp], esi
jae 0x42dcc3
lea ebx, [esp + 4]
mov byte [ebx + 0xb], cl
cmp ecx, 3
jne 0x42dd83
movzx eax, word [edi + 4]
mov word [esp + 8], ax
mov eax, dword [edi]
mov dword [esp + 4], eax
jmp 0x42dd00
push edi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.0042dda0
add esp, 0xc
mov bl, 1
jmp 0x42dd6e
push str.Failed_to_create_one_of_the_parent_directories
call fcn.0042dda0
add esp, 4
jmp 0x42dd59
lea esi, [ecx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
mov ebx, ecx
call fcn.0046ecad
mov ecx, ebx
add esp, 4
mov ebx, eax
mov dword [esp + 4], eax
or esi, 0x80000000
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov eax, ecx
add eax, ecx
push eax
push edi
push ebx
mov esi, ecx
call fcn.004722b0
mov ecx, esi
add esp, 0xc
mov word [ebx + ecx*2], 0
cmp byte [esp + 0xf], 0
jns 0x42dd13
mov eax, dword [esp + 4]
jmp 0x42dd17
lea eax, [esp + 4]
mov esi, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
cmp byte [esp + 0xf], 0
jns 0x42dd44
push dword [esp + 4]
call fcn.0046ecdd
add esp, 4
test bl, bl
mov bl, 1
jne 0x42dd5b
push esi
push edi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.0042dda0
add esp, 0xc
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x42dd6e
push dword [esp + 0x10]
call fcn.0046ecdd
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
jne 0x42dced
jmp 0x42dd00
lea ecx, [esp + 4]
call fcn.004b4130
int3