Function at 0x40bd50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x5f3008]
xor eax, esp
mov dword [esp + 0x8a8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4000
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], eax
call fcn.00560858
add esp, 4
mov dword [esp + 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push esi
push 0x5a9ffc
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa4]
push 0xa
push eax
call fcn.00406c50
sar esi, 0x1f
xor edx, edx
and esi, 1
mov ecx, eax
add esi, 9
add esp, 0x10
sub ecx, esi
cmp eax, esi
cmovl ecx, edx
cmp ecx, eax
jge 0x40bdf4
sub eax, ecx
lea esi, [esp + 0x9c]
lea esi, [esi + ecx*2]
mov ecx, eax
shr ecx, 1
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
jmp 0x40bdf6
xor eax, eax
xor ecx, ecx
xor edi, edi
mov word [esp + eax*2 + 0x88], cx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
test eax, eax
jle 0x40bf1c
mov ecx, 1
lea esi, [edi + 0x25]
mov dword [esp + 0x10], ecx
lea edx, [edi + 0x22]
cmp ecx, eax
mov eax, dword [esp + 0x18]
jge 0x40bef9
cmp word [eax + edi*2], 0x25
jne 0x40bef9
movzx eax, word [eax + edi*2 + 2]
cmp eax, 0x66
je 0x40bea6
cmp eax, 0x46
je 0x40bea6
cmp eax, 0x6c
je 0x40be5e
cmp eax, 0x4c
je 0x40be5e
mov word [esp + ebx*2 + 0xb0], si
jmp 0x40bf05
lea eax, [esp + 0x88]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40be96
mov ax, word [esp + esi*2 + 0x88]
inc esi
mov word [esp + ebx*2 + 0xb0], ax
lea eax, [esp + 0x88]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x40be72
mov ecx, dword [esp + 0x10]
mov edx, 0x22
inc edi
inc ecx
lea esi, [edx + 3]
jmp 0x40bf06
push dword [esp + 0x14]
mov word [esp + ebx*2 + 0xb4], dx
xor esi, esi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40bee0
mov edi, dword [esp + 0x14]
mov ax, word [edi + esi*2]
inc esi
mov word [esp + ebx*2 + 0xb0], ax
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jl 0x40bec3
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, 0x22
mov word [esp + ebx*2 + 0xb0], dx
inc edi
inc ebx
inc ecx
lea esi, [edx + 3]
jmp 0x40bf06
mov ax, word [eax + edi*2]
mov word [esp + ebx*2 + 0xb0], ax
inc ebx
mov eax, dword [esp + 0x20]
inc edi
inc ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ecx
cmp edi, eax
jl 0x40be21
add ebx, ebx
cmp ebx, 0x800
jae 0x40c037
mov edi, dword [esp + 0x28]
xor eax, eax
cmp byte [ebp + 0x10], al
mov word [esp + ebx + 0xb0], ax
lea eax, [esp + 0xb0]
push eax
je 0x40bf62
push dword [esp + 0x30]
push dword [esp + 0x2c]
push str.__s___s__s
push 0x2000
push edi
call fcn.00406c50
add esp, 0x18
jmp 0x40bf79
push dword [esp + 0x28]
push str.__s___s
push 0x2000
push edi
call fcn.00406c50
add esp, 0x14
xor eax, eax
mov dword [esp + 0x40], 0x44
mov word [esp + 0x82], ax
xorps xmm0, xmm0
mov eax, 0xa
movlpd qword [esp + 0x44], xmm0
mov word [esp + 0x70], ax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
movlpd qword [esp + 0x50], xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edi
push 0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x9a], xmm0
movlpd qword [esp + 0xa2], xmm0
mov dword [esp + 0x94], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x2710
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x30]
call esi
push edi
call fcn.00560853
mov ecx, dword [esp + 0x8b8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret
call fcn.0056073a
int3