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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4490b9
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 0x42e373
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 0x42e463
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e463
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 0x42e3ff
test esi, 0xffff0000
jne 0x42e403
movzx eax, si
push 0
push eax
call fcn.004030a0
add esp, 8
test eax, eax
je 0x42e428
movzx ecx, si
push ecx
push eax
mov ecx, ebx
call fcn.00402f40
jmp 0x42e428
xor eax, eax
jmp 0x42e41f
mov eax, esi
lea edx, [eax + 2]
jmp 0x42e410
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e410
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 0x42e44c
mov dword [eax], edi
jmp 0x42e44f
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 0x42e382
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f9ba
add esp, 8
cmp eax, edi
jl 0x42e5b3
cmp eax, dword [esi - 8]
jg 0x42e5b3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], edi
je 0x42e4f4
mov bl, 4
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x38]
call fcn.0042df20
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0042f0b0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0042f120
mov edi, dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42e532
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.0042f0d0
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 0x42e4ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x30], 0
jne 0x42e491
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 0x42e514
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 0x42e546
and eax, 0xffff
or eax, 0x80070000
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.0042f0d0
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 0x42e574
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 0x42e594
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