Function at 0x4067d0
Capabilities:
Accept command line arguments
Create directory
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0x104
mov dword [0x44dcf8], ebx
call fcn.00411730
push 2
push 0x104
mov dword [0x44dcfc], eax
call fcn.00411730
push 2
push 0x104
mov dword [0x44dd00], eax
call fcn.00411730
push 2
push 0x2000
mov dword [0x44dd10], eax
call fcn.00411730
mov ecx, dword [0x44dcfc]
add esp, 0x20
mov dword [0x44dd0c], eax
test ecx, ecx
je 0x406e59
cmp dword [0x44dd00], 0
je 0x406e59
cmp dword [0x44dd10], 0
je 0x406e59
test eax, eax
je 0x406e59
push esi
push edi
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [0x44dd10]
push 2
push 0x104
call fcn.00411730
mov esi, eax
add esp, 8
test esi, esi
je 0x4068a5
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0x442220
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call fcn.0041173b
add esp, 4
mov eax, dword [0x44dd10]
cmp word [eax], 0
je 0x406ddc
push eax
call fcn.00411740
add esp, 4
push 0
push dword [0x44dd10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4068d7
lea ebx, [eax + 4]
jmp 0x406da2
push dword [0x44dd10]
call fcn.00405db0
add esp, 4
call fcn.00406060
mov dword [ebp - 8], eax
test eax, eax
jne 0x406b74
push dword [0x44dd00]
push str.__s_
push dword [0x44dd0c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
movzx edx, word [ebx]
lea ecx, [ebx + 2]
cmp edx, 0x22
je 0x406924
mov ecx, ebx
xor eax, eax
cmp edx, 0x22
sete al
lea eax, [eax*2 + 0x20]
push eax
push ecx
call fcn.004080ba
add esp, 8
test eax, eax
je 0x406944
lea ebx, [eax + 2]
test ebx, ebx
je 0x4069aa
cmp word [ebx], 0
je 0x4069aa
mov edi, dword [0x44dd0c]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x406960
mov eax, dword [0x442248]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x406975
mov edi, dword [0x44dd0c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406990
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x44dd0c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4069b3
mov eax, dword [0x44224c]
mov dword [ecx], eax
mov eax, dword [str.SF__]
mov dword [ecx + 4], eax
mov eax, dword [0x442254]
mov dword [ecx + 8], eax
mov ax, word [0x442258]
mov word [ecx + 0xc], ax
mov edx, dword [0x44dcfc]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4069f0
mov edi, dword [0x44dd0c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406a06
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x44dd0c]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x406a30
mov eax, dword [0x44225c]
mov dword [edi], eax
mov edx, dword [0x44dd0c]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406a50
push dword [0x44dd04]
sub ecx, esi
sar ecx, 1
push 0x442260
lea eax, [edx + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x78], 0x44
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
push eax
lea eax, [ebp - 0x78]
movlpd qword [ebp - 0x64], xmm0
push eax
push 0
push 0
push 0x20
push 1
push 0
push 0
push dword [0x44dd0c]
movlpd qword [ebp - 0x5c], xmm0
push 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406b74
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
test esi, esi
jne 0x406b34
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
call edi
test eax, eax
je 0x406b34
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x406b1d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x406b22
mov esi, 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call edi
test eax, eax
jne 0x406af7
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x406b64
push 0x4ff
push 0x3e8
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp dword [ebp - 4], 0x103
je 0x406ae5
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [0x44dcfc]
test eax, eax
je 0x406bb4
push 0x5c
push eax
call fcn.00408181
add esp, 8
test eax, eax
je 0x406bb4
mov ecx, eax
sub ecx, dword [0x44dcfc]
sar ecx, 1
cmp ecx, 3
jae 0x406ba3
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x406ba8
xor ecx, ecx
mov word [eax], cx
push dword [0x44dcfc]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [0x44dd08]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x406c9d
cmp word [edi], 0
je 0x406c94
xor esi, esi
push edi
call fcn.00411740
add esp, 4
test eax, eax
je 0x406bfa
call fcn.0041126d
cmp dword [eax], 2
je 0x406bfa
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x406bd4
jmp 0x406c66
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c00
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.00411730
mov esi, eax
add esp, 8
test esi, esi
je 0x406c66
mov edx, esi
mov ecx, edi
sub edx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x406c30
push 0x5c
push esi
call fcn.00408181
add esp, 8
test eax, eax
je 0x406c5d
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00411b62
add esp, 4
push esi
call fcn.0041173b
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c70
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x406bd2
mov edi, dword [0x44dd08]
push edi
call fcn.0041173b
add esp, 4
push 2
push 0x104
call fcn.00411730
mov esi, eax
add esp, 8
test esi, esi
je 0x406d3d
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406d34
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406cd0
sub ecx, edx
sar ecx, 1
push ecx
push dword [0x44dd10]
push esi
call fcn.00411577
add esp, 0xc
test eax, eax
jne 0x406d34
mov edi, dword [0x44dd10]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d00
sub ecx, edx
mov edx, esi
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 4], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406d17
sub edx, dword [ebp - 4]
sar edx, 1
cmp ecx, edx
jbe 0x406d34
push edi
call fcn.004065d0
add esp, 4
push esi
call fcn.0041173b
add esp, 4
xor esi, esi
nop
mov edx, dword [0x44dd10]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d50
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x406d7b
cmp word [edx + ecx*2 - 2], 0x5c
lea eax, [edx + ecx*2]
jne 0x406d7b
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x44dd10]
push edx
call fcn.00411b62
add esp, 4
test eax, eax
je 0x406d9f
call fcn.0041126d
cmp dword [eax], 2
je 0x406d9f
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x406d40
mov ebx, dword [ebp - 8]
cmp ebx, 0x40000000
jl case.default.0x406db5
lea eax, [ebx - 0x40000001]
cmp eax, 3
ja case.default.0x406db5
jmp dword [eax*4 + 0x406e64]
mov ebx, 2
jmp 0x406de1
mov ebx, 6
jmp 0x406de1
mov ebx, 7
jmp 0x406de1
test ebx, ebx
jle 0x406e1f
cmp ebx, 8
jge 0x406e1f
jmp 0x406de1
mov ebx, 4
push 2
push 0x104
call fcn.00411730
movsx ecx, byte [ebx + section..data]
add esp, 8
mov esi, eax
push 0x104
push esi
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.0041173b
add esp, 4
push dword [0x44dd0c]
call fcn.0041173b
push dword [0x44dd10]
call fcn.0041173b
push dword [0x44dd00]
call fcn.0041173b
push dword [0x44dcfc]
call fcn.0041173b
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10