Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, 2
mov dword [ebp - 4], esi
jge 0x40106b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x401045
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push ecx
push str.This_program_is_used_by_Pythons_os.popen_function_nto_work_around_a_limitation_in_Windows_95_98.__It_is_nnot_designed_to_be_used_as_a_stand_alone_program.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.This_program_is_used_by_Pythons_os.popen_function_nto_work_around_a_limitation_in_Windows_95_98.__It_is_nnot_designed_to_be_used_as_a_stand_alone_program.
push str.Internal_popen_error___no_args_specified_n_s_n
call fcn.00401414
add eax, 0x20
push eax
call fcn.0040169e
add esp, 0xc
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp ebx, ecx
push edi
jle 0x401092
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401080
sub eax, edi
inc ecx
cmp ecx, ebx
lea esi, [esi + eax*2 + 3]
jl 0x401075
inc esi
push esi
call fcn.0040134a
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
jne 0x4010af
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
cmp ebx, edi
jle 0x401108
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edi*4]
push 0x20
push ecx
call fcn.004015e0
add esp, 8
neg eax
sbb eax, eax
neg eax
je 0x4010d5
mov byte [esi], 0x22
inc esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + edi*4]
mov dl, byte [ecx]
test dl, dl
je 0x4010f7
cmp dl, 0x22
jne 0x4010ea
mov byte [esi], 0x5c
inc esi
movzx edx, byte [ecx]
inc ecx
mov byte [esi], dl
mov dl, byte [ecx]
inc esi
test dl, dl
jne 0x4010e1
test eax, eax
je 0x4010ff
mov byte [esi], 0x22
inc esi
mov byte [esi], 0x20
inc edi
inc esi
cmp edi, ebx
jl 0x4010b8
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
mov byte [esi], 0
call fcn.0040a1a0
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff6
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 0x100
call esi
push 0xfffffffffffffff5
mov dword [ebp - 0x20], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.004011f3
add esp, 4
test esi, esi
je 0x4011ae
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x401192
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret