Function at 0x403cf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x455c60]
xor eax, esp
mov dword [esp + 0x3ec], eax
push ebx
mov ebx, dword [esp + 0x3fc]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x3fc]
push esi
mov dword [esp + 0xc], ebp
je 0x403d31
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403d22
sub eax, edx
mov esi, eax
jmp 0x403d33
xor esi, esi
test ebp, ebp
je 0x404061
cmp byte [ebp], 0
je 0x404061
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403d50
sub eax, edx
add eax, esi
cmp eax, 0x104
jae 0x404061
push str.COMSPEC
mov byte [esp + 0x70], cl
call fcn.0040aeb0
add esp, 4
test eax, eax
je 0x403d90
push eax
lea eax, [esp + 0x70]
push str.__s___c
push eax
call fcn.0040a015
add esp, 0xc
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403d97
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, ebp
mov ecx, ebp
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403db0
push edi
lea edi, [esp + 0x70]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403dc5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x403e2c
lea edi, [esp + 0x70]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403de8
mov cx, word [0x41b22c]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403e00
lea edi, [esp + 0x70]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403e14
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x70]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403e33
mov edx, dword [0x41b228]
lea eax, [esp + 0x70]
mov dword [edi], edx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403e50
sub eax, edx
mov ecx, 0x314
sub ecx, eax
lea esi, [esp + eax + 0x70]
push ecx
push esi
mov dword [esp + 0x20], esi
call fcn.00403b20
add esp, 8
test eax, eax
je 0x404038
push 0
push esi
call fcn.00403c90
lea eax, [esp + 0x78]
add esp, 8
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403e90
sub eax, edx
push ebp
lea ebx, [esp + eax + 0x74]
call fcn.00403ab0
add esp, 4
test eax, eax
jle 0x403eb2
add ebp, eax
mov dword [esp + 0x10], ebp
mov esi, ebp
mov ebp, ebx
xor edi, edi
sub ebp, dword [esp + 0x10]
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x80
jae 0x403efc
movzx edx, al
push edx
call fcn.0040a98a
add esp, 4
test eax, eax
jne 0x403eec
mov al, byte [esi]
cmp al, 0x80
jae 0x403efc
movzx eax, al
push eax
call fcn.0040aa7c
add esp, 4
test eax, eax
je 0x403efc
mov cl, byte [esi]
mov byte [esi + ebp], cl
add edi, 1
add esi, 1
cmp edi, 0x28
jl 0x403ec0
lea esi, [ebx + edi]
mov byte [esi], 0
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push str.__lu.out
push esi
call fcn.0040a015
mov ebx, dword [esp + 0x24]
push ebx
call fcn.0041a3f0
lea eax, [esp + 0x80]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403f30
sub eax, edx
lea edi, [esp + 0x70]
mov ebp, eax
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403f44
mov dx, word [0x41b218]
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
mov word [edi], dx
call fcn.0040a0a0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 1
mov word [esp + 0x84], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403fec
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 1
push ebx
mov byte [esp + ebp + 0x7c], 0
call fcn.00403540
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push edx
mov esi, eax
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
test esi, esi
jne 0x404053
mov esi, dword [esp + 0x14]
lea esi, [esp + esi + 0x70]
push esi
call fcn.004081c0
add esp, 4
cmp eax, 0xffffffff
jne 0x404017
push esi
push 0x4457
call fcn.00403070
add esp, 8
mov byte [esp + ebp + 0x70], 0
jmp 0x40402f
push 0
push 1
push ebx
mov byte [esp + ebp + 0x7c], 0
call fcn.00403540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404053
push ebx
call fcn.0041a3f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3ec]
xor ecx, esp
call fcn.0040a090
add esp, 0x3f0
ret
mov ecx, dword [esp + 0x40c]
mov dword [esi + 0x74], ecx
mov eax, esi
jmp 0x40403a
push ebp
push 0x43f8
call fcn.00403090
mov ecx, dword [esp + 0x400]
add esp, 8
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a090
add esp, 0x3f0
ret