Function at 0x4066c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x422310]
mov dword [esp + 0x258], eax
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov edx, dword [ebx + 0x2b4]
mov byte [esp + 0x158], 0
mov ecx, 0x40
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x50], 0
mov ecx, 0x40
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x2b0]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x2ac]
lea esi, [eax + ecx]
xor edi, edi
add esi, edx
cmp eax, edi
mov dword [esp + 0x10], 0
jle 0x406743
test byte [ebx + 0x19c], 1
mov dword [esp + 0x18], 1
jne 0x406747
mov dword [esp + 0x18], edi
cmp ecx, edi
jle 0x40675c
test byte [ebx + 0x19c], 2
mov dword [esp + 0xc], 1
jne 0x406760
mov dword [esp + 0xc], edi
cmp edx, edi
jle 0x406775
test byte [ebx + 0x19c], 4
mov dword [esp + 0x14], 1
jne 0x406779
mov dword [esp + 0x14], edi
cmp dword [esp + 0x18], edi
jne 0x40678f
cmp dword [esp + 0xc], edi
jne 0x40678f
cmp dword [esp + 0x14], edi
je 0x40696b
push 0x104
lea eax, [esp + 0x15c]
push eax
push 0x68
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
call edi
test eax, eax
je 0x406983
push 0xa
lea ecx, [esp + 0x24]
push ecx
push 0x69
push 0
call edi
test eax, eax
je 0x406983
push 0xa
lea edx, [esp + 0x3c]
push edx
push 0x6a
push 0
call edi
test eax, eax
je 0x406983
push 0xa
lea eax, [esp + 0x30]
push eax
push 0x6c
push 0
call edi
test eax, eax
je 0x406983
push 0xa
lea ecx, [esp + 0x48]
push ecx
push 0x6e
push 0
call edi
test eax, eax
je 0x406983
mov eax, dword [ebx + 0x2a8]
cmp eax, 1
jne 0x406818
lea edx, [esp + 0x20]
mov dword [esp + 0x10], edx
jmp 0x406825
cmp eax, 2
jne 0x406825
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2b8]
test eax, eax
je 0x406839
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], ecx
jmp 0x406841
lea edx, [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0x2ac]
mov ecx, dword [ebx + 0x2b0]
mov edx, dword [ebx + 0x2b4]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push esi
push eax
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0040fadd
mov eax, dword [ebx + 0x2ac]
add esp, 0x1c
test eax, eax
jle 0x4068c8
lea edi, [esp + 0x50]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406880
mov ax, word [0x41c874]
mov cl, byte [0x41c876]
mov word [edi], ax
mov eax, dword [esp + 0x1c]
mov byte [edi + 2], cl
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068a0
lea edi, [esp + 0x50]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4068b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406921
push 0xa01414
push 1
push 0x4232a0
lea edx, [esp + 0x5c]
push edx
push 1
push 0x1b58
push 0
push 5
lea ecx, [ebx + 0x2bc]
call fcn.0040ba30
cmp eax, 6
jne 0x40696b
push 5
push 0x422f28
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
mov ecx, dword [esp + 0x264]
call fcn.0040f12e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40693c
push 0x149614
push 1
push 0x4232a0
lea eax, [esp + 0x5c]
push eax
jmp 0x406955
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40696b
push 0x149614
push 1
push 0x4232a0
lea ecx, [esp + 0x5c]
push ecx
push 1
push 0x1b58
push 0
lea ecx, [ebx + 0x2bc]
push 1
call fcn.0040b9e0
mov eax, 1
mov ecx, dword [esp + 0x264]
call fcn.0040f12e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
xor eax, eax
call fcn.0040f12e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret