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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f39
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0xa
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [ebp - 4], edi
call fcn.00403470
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp + 8], esi
cmp dword [esi - 4], 1
mov byte [ebp - 4], 1
jle 0x42e1f3
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004034e0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42e2e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e2e3
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], edx
call fcn.004209e0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [0x45e020]
lea ebx, [eax + 8]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x42e27f
test esi, 0xffff0000
jne 0x42e283
movzx eax, si
push 0
push eax
call fcn.004030a0
add esp, 8
test eax, eax
je 0x42e2a8
movzx ecx, si
push ecx
push eax
mov ecx, ebx
call fcn.00402f40
jmp 0x42e2a8
xor eax, eax
jmp 0x42e29f
mov eax, esi
lea edx, [eax + 2]
jmp 0x42e290
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e290
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.00403370
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov dword [edi + 4], edx
mov dword [edi], 0
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0x30]
mov byte [ebp - 4], 1
test eax, eax
je 0x42e2cc
mov dword [eax], edi
jmp 0x42e2cf
mov dword [ebp - 0x38], edi
push esi
mov dword [ebp - 0x34], edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edi, edi
test eax, eax
jne 0x42e202
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f896
add esp, 8
cmp eax, edi
jl 0x42e433
cmp eax, dword [esi - 8]
jg 0x42e433
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], edi
je 0x42e374
mov bl, 4
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x38]
call fcn.0042dda0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0042ef30
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0042efa0
mov edi, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42e3b2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0042ef50
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e36e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 0
jne 0x42e311
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42e394
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [ebp - 0x38]
call fcn.004208a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e3c6
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.0042ef50
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e3f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e414
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebp - 0x38]
call fcn.004208a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00403700
int3