Function at 0x402294
Capabilities:
Create directory
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 4]
enter 0x904, 0
push ebx
push ecx
push edx
lea eax, [ebp - 0x104]
push eax
push 1
call fcn.00402b10
mov edi, 0x40557c
lea esi, [ebp - 0x104]
call fcn.00401940
call fcn.00402f70
test eax, eax
je 0x4022f6
mov esi, 0x40557c
mov edi, 0x4043d5
call fcn.00402f50
test al, al
jne 0x4022f6
mov edi, 0x4043d8
call fcn.00402f50
test al, al
jne 0x4022f6
mov edi, 0x4043db
call fcn.00402f50
test al, al
je 0x402312
mov edi, 0x4056a9
mov esi, 0x4043de
call fcn.00401940
push edi
call fcn.00402eb0
push 0
call fcn.00402e80
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.00402b10
mov edi, 0x405328
lea esi, [ebp - 0x104]
call fcn.00401940
push 0x40568d
call sub.kernel32.dll_GetSystemTime
inc word [0x405695]
lea eax, [ebp - 0x104]
push eax
mov bx, word [0x40568d]
push ebx
call fcn.00402950
mov edi, 0x405688
lea esi, [ebp - 0x104]
push 4
call fcn.00401950
cmp byte [0x405688], 1
jne 0x402399
mov esi, 0x4044d2
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x405688
call fcn.00401af0
mov edi, esi
lea esi, [ebp - 0x104]
push 4
call fcn.00401950
lea eax, [ebp - 0x104]
push eax
mov bx, word [0x40568f]
push ebx
call fcn.00402950
mov edi, 0x405685
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
cmp byte [0x405685], 1
jne 0x4023f1
mov esi, 0x4044d4
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x405685
call fcn.00401af0
mov edi, esi
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
lea eax, [ebp - 0x104]
push eax
mov bx, word [0x405693]
push ebx
call fcn.00402950
mov edi, 0x405682
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
cmp byte [0x405682], 1
jne 0x402449
mov esi, 0x4044d6
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x405682
call fcn.00401af0
mov edi, esi
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
lea eax, [ebp - 0x104]
push eax
mov bx, word [0x405695]
push ebx
call fcn.00402950
mov edi, 0x40567f
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
cmp byte [0x40567f], 1
jne 0x4024a1
mov esi, 0x4044d8
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x40567f
call fcn.00401af0
mov edi, esi
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
lea eax, [ebp - 0x104]
push eax
mov bx, word [0x405697]
push ebx
call fcn.00402950
mov edi, 0x40567c
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
cmp byte [0x40567c], 1
jne 0x4024f9
mov esi, 0x4044da
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x40567c
call fcn.00401af0
mov edi, esi
lea esi, [ebp - 0x104]
push 2
call fcn.00401950
mov esi, 0x40557c
lea edi, [ebp - 0x904]
call fcn.00401b30
mov esi, 0x405688
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x804]
call fcn.00401b30
mov esi, 0x4044dc
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x704]
call fcn.00401b30
mov esi, 0x405685
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x604]
call fcn.00401b30
mov esi, 0x4044de
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x504]
call fcn.00401b30
mov esi, 0x405682
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x404]
call fcn.00401b30
mov esi, 0x4044e0
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x304]
call fcn.00401b30
mov esi, 0x40567f
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x204]
call fcn.00401b30
mov esi, 0x4044e2
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x40567c
call fcn.00401af0
mov edi, 0x40557c
lea esi, [ebp - 0x104]
call fcn.00401940
mov esi, edi
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x4044e4
call fcn.00401af0
mov edi, 0x40557c
lea esi, [ebp - 0x104]
call fcn.00401940
push 0
push 0x40557d
call sub.kernel32.dll_CreateDirectoryA
push 0x40557d
call sub.kernel32.dll_SetCurrentDirectoryA
test al, al
jne 0x40262c
call sub.kernel32.dll_GetLastError
push eax
push 0x4044e6
call fcn.00402840
push 0x405528
push 0x44
call fcn.00402820
push 0x404500
push 0x405328
call fcn.004027c0
test eax, eax
jle 0x40266e
push 0xff
push 0x405328
push 0x404502
push 0x405328
call fcn.004027c0
push eax
push 1
call fcn.00402770
jmp 0x402638
mov esi, 0x405328
lea edi, [ebp - 0x204]
call fcn.00401b30
mov esi, 0x404504
call fcn.00401af0
mov esi, edi
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x40557c
call fcn.00401af0
mov edi, 0x405328
lea esi, [ebp - 0x104]
call fcn.00401940
push 0x40556c
push 0x405528
push 0
push 0
push 0x80
push 0
push 0
push 0
push 0x405329
push 0
call sub.kernel32.dll_CreateProcessA
test al, al
jne 0x4026fa
mov esi, 0x404506
lea edi, [ebp - 0x104]
call fcn.00401b30
mov esi, 0x405328
call fcn.00401af0
mov eax, edi
push eax
call fcn.00402700
pop edx
pop ecx
pop ebx
leave
pop ebp
ret