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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a59a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b42b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42050b
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push str.CQodHQQFLxsMBhgnBzorLicNOCASLAMANQYkJBofMDcfMhcsJA0yNi4cIjU_AhsuDAIBFysbFzw2IzQ2FwkWKj8cLTkVFgAAAEU
push eax
mov dword [ebp - 0x18], 0
call fcn.0041fea0
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov byte [ebp - 4], 1
sar eax, 1
jne 0x420550
push str.invalid_vector_T__subscript
call fcn.00441bba
push ecx
lea ecx, [ebp - 0x18]
call fcn.00411470
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
test eax, eax
je 0x420582
push eax
call fcn.0044317c
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00412ed0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42059e
push 0x80004005
call fcn.00412c60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push str.CSYNKhUEOS0DHDssJBYVChQ1JyQ8MDI4LDMUBAwUMy0hEzUWDBsIGDoZDhEMTYCPxQQDBIhFgYJDwwfLQUsAiIhDjAgEBMKNS8_Hz4ePAgSMCg6MTwFGxYwARg0KD8lKAE2MSM7FyEYGwI5KxMRIystHQADCh8vIxstHDgWOBMVHR4mAyICKzM4MwElJBUgIioNHykyMhgcADw2IS0cESQAAACg
push eax
call fcn.0041fea0
add esp, 8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov byte [ebp - 4], 5
sar eax, 1
jne 0x4205d9
push str.invalid_vector_T__subscript
call fcn.00441bba
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.004273e0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004248e0
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x420618
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
test eax, eax
je 0x42062c
push eax
call fcn.0044317c
add esp, 4
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi - 0xc]
test ecx, ecx
je 0x4207ab
lea ebx, [ebx]
cmp dword [esi - 0xc], 0
jne 0x4206a0
lea edx, [edi - 0x10]
lea ebx, [esi - 0x10]
cmp edx, ebx
je 0x420713
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x420691
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x420691
push edx
call fcn.004251b0
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x420686
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x420713
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00413590
mov esi, dword [ebp - 0x10]
jmp 0x420713
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4206c4
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004132e0
mov esi, dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.00445bfa
add esp, 8
test eax, eax
js 0x420834
cmp eax, dword [esi - 8]
jg 0x420834
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420702
test al, 0x10
jne 0x420713
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42081f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.004273e0
mov ecx, dword [eax]
lea ebx, [edi - 0x10]
mov byte [ebp - 4], 7
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x42077f
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x420770
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x420770
push edx
call fcn.004251b0
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x420768
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x42077f
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00413590
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4207a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi - 0xc]
test ecx, ecx
jne 0x420640
xor ebx, ebx
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4207cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4207ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x42080b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
jmp 0x4207ad
push 0x80070057
call fcn.00412c60
int3