Function at 0x100267d0
Capabilities:
Check if file exists
Create directory
Create process on windows
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008245c
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10045860
mov eax, dword [0x100a7070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.100138c0
mov ecx, eax
test ecx, ecx
jne 0x10026819
push 0x80004005
call fcn.100142e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x10097a44
jne 0x1002682e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x10026830
call edx
add eax, 0x10
mov dword [ebp - 0x2014], eax
test esi, esi
mov dword [ebp - 4], 0
mov eax, str.null
cmovne eax, esi
push eax
lea eax, [ebp - 0x2014]
push str._CreateFullPath_:__s_n
push eax
call fcn.10019da0
mov edi, dword [ebp - 0x2014]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call ebx
test esi, esi
jne 0x1002687e
push str._CreateFullPath____This_file_path_is_null___n
call ebx
jmp 0x10026bee
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100268b1
push esi
lea eax, [ebp - 0x2014]
push str._This_file_:__s_already_exists_n
push eax
call fcn.10019da0
mov edi, dword [ebp - 0x2014]
add esp, 0xc
push edi
call ebx
mov esi, 1
jmp 0x10026bee
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.1005d9b0
push esi
push 0x1009bd10
lea eax, [ebp - 0x1010]
push 0x1000
push eax
call fcn.1001a430
add esp, 0x1c
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.1005d9b0
lea eax, [ebp - 0x1010]
push eax
push str._c_mkdir___s_
lea eax, [ebp - 0x2010]
push 0x800
push eax
call fcn.1001a430
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1005d9b0
lea eax, [ebp - 0x2010]
push eax
push str._command_line_:__s_n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1001a430
add esp, 0x38
lea eax, [ebp - 0x810]
push eax
call ebx
push 0
push 0
lea eax, [ebp - 0x2010]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x800
test eax, eax
lea eax, [ebp - 0x810]
push 0
push eax
je 0x100269cb
call fcn.1005d9b0
lea eax, [ebp - 0x1010]
push eax
push str._create_directory_:__s_successfull__n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1001a430
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
call ebx
mov esi, 1
jmp 0x10026bee
call fcn.1005d9b0
lea eax, [ebp - 0x1010]
push eax
push str._create_directory_:__s_failed__n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1001a430
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
call ebx
lea ecx, [ebp - 0x2018]
call fcn.10018460
push esi
lea ecx, [ebp - 0x2020]
mov byte [ebp - 4], 1
mov ebx, 3
call fcn.10018a60
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2018]
mov eax, dword [ebp - 0x2020]
test ebx, ebx
js 0x10026a4e
cmp ebx, dword [eax - 0xc]
jge 0x10026a4e
lea eax, [eax + ebx*2]
push 0x5c
push eax
call fcn.1005c978
add esp, 8
test eax, eax
je 0x10026a4e
sub eax, dword [ebp - 0x2020]
sar eax, 1
jmp 0x10026a51
or eax, 0xffffffff
lea ebx, [eax + 1]
test ebx, ebx
je 0x10026b9e
push ebx
lea eax, [ebp - 0x2028]
push eax
lea ecx, [ebp - 0x2020]
call fcn.10018590
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x201c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x2024], eax
cmp eax, ecx
je 0x10026acf
cmp dword [ecx + 0xc], 0
jl 0x10026aba
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x10026aba
mov ecx, dword [ebp - 0x2024]
call fcn.10019540
mov ecx, dword [ebp - 0x201c]
mov esi, eax
call fcn.10014570
add esi, 0x10
mov dword [ebp - 0x2018], esi
jmp 0x10026acf
push dword [edx - 0xc]
lea ecx, [ebp - 0x2018]
push edx
call fcn.10019610
mov esi, dword [ebp - 0x2018]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x2028]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10026b1c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x201c], edi
mov edi, dword [ebp - 0x2014]
cmp eax, 0x10097a44
jne 0x10026b14
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10026b1c
mov ecx, edx
call dword [ebp - 0x201c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10026a23
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x10026a23
mov esi, eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x800
test eax, eax
lea eax, [ebp - 0x810]
push 0
push eax
je 0x10026ba5
call fcn.1005d9b0
lea eax, [ebp - 0x1010]
push eax
push str.__create_directory_:__s_successfull__n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1001a430
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
mov esi, 1
jmp 0x10026bd8
mov esi, 1
jmp 0x10026b45
call fcn.1005d9b0
lea eax, [ebp - 0x1010]
push eax
push str.__create_directory_:__s_failed__n
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1001a430
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
lea ecx, [ebp - 0x2020]
call fcn.10018360
lea ecx, [ebp - 0x2018]
call fcn.10018360
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10026c26
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x10026c24
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10026c26
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004450b
mov esp, ebp
pop ebp
ret