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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d29
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x45d274]
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 0x42dfe3
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 0x42e0d3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e0d3
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], edx
call fcn.00420b00
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 [0x45d020]
lea ebx, [eax + 8]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
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 0x42e06f
test esi, 0xffff0000
jne 0x42e073
movzx eax, si
push 0
push eax
call fcn.004030a0
add esp, 8
test eax, eax
je 0x42e098
movzx ecx, si
push ecx
push eax
mov ecx, ebx
call fcn.00402f40
jmp 0x42e098
xor eax, eax
jmp 0x42e08f
mov eax, esi
lea edx, [eax + 2]
jmp 0x42e080
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e080
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 0x42e0bc
mov dword [eax], edi
jmp 0x42e0bf
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 0x42dff2
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f686
add esp, 8
cmp eax, edi
jl 0x42e223
cmp eax, dword [esi - 8]
jg 0x42e223
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], edi
je 0x42e164
mov bl, 4
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x38]
call fcn.0042db90
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0042ed20
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0042ed90
mov edi, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42e1a2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0042ed40
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 0x42e15e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 0
jne 0x42e101
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 0x42e184
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [ebp - 0x38]
call fcn.004209c0
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 0x42e1b6
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.0042ed40
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 0x42e1e4
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 0x42e204
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebp - 0x38]
call fcn.004209c0
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