Function at 0x42cbf0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504d17
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
call fcn.004066c0
test al, al
jne 0x42cc4a
xor bl, bl
jmp 0x42cec1
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x42cf01
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x42cc95
test esi, 0xffff0000
jne 0x42cc91
movzx eax, si
lea ecx, [ebp - 0x14]
push eax
call fcn.004043d0
jmp 0x42ccb9
test esi, esi
jne 0x42cc99
xor ecx, ecx
jmp 0x42ccaf
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cca0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00403870
mov byte [ebp - 4], 2
push esi
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 0
push 0xc
push str.ADVINST_LOGS
call fcn.00402660
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x42cd6c
lea ecx, [ebp - 0x64]
call fcn.0040a180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
push 0
push 0x10000000
push str.Everyone
call fcn.0040a370
lea ecx, [ebp - 0x64]
call fcn.0040a8f0
test eax, eax
jne 0x42cd32
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040a220
xor bl, bl
jmp 0x42ce99
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040a220
test esi, esi
jne 0x42cd6c
xor bl, bl
jmp 0x42ce99
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
js 0x42cef7
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42cd9a
push esi
lea ecx, [ebp - 0x14]
call fcn.004025f0
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
mov word [eax + ebx*2], cx
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x42cef7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x28]
cmp dword [ecx - 0xc], 0
jne 0x42cde2
lea ecx, [ebp - 0x20]
call fcn.0042d0d0
mov byte [ebp - 4], 4
mov ebx, 1
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
mov esi, dword [ebp - 0x1c]
jmp 0x42ce01
add ecx, 0xfffffff0
call fcn.00402800
add eax, 0x10
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 6
mov ebx, 2
mov dword [ebp - 0x18], ebx
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00402660
mov dword [ebp - 4], 4
test bl, 2
je 0x42ce4c
and ebx, 0xfffffffd
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 4
lea ecx, [esi - 0x10]
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42ce4c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
or edi, 0xffffffff
mov dword [ebp - 4], 2
test bl, 1
je 0x42ce88
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42ce88
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00409df0
mov bl, 1
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x42cec1
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
call fcn.004d4092
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov al, bl
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.004027d0
push 0x80004005
call fcn.004027d0
int3