Function at 0x40b930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004093d0
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.004122d4
add esp, 8
test eax, eax
je 0x40b978
call fcn.004093d0
push eax
call fcn.00413cf9
add esp, 4
call fcn.004093d0
push eax
call fcn.00408980
add esp, 4
call fcn.004093d0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b980
sub eax, edx
lea esi, [eax + 8]
lea esp, [esp]
push esi
call fcn.00412765
add esp, 4
mov dword [ebp - 0x184], eax
test eax, eax
je 0x40b990
call fcn.004093d0
mov esi, dword [ebp - 0x184]
push eax
push str._s
push esi
call fcn.004128a6
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push esi
call fcn.004137e9
add esp, 8
mov dword [ebp - 0x188], eax
test eax, eax
je 0x40bd0d
cmp eax, 0xffffffff
je 0x40bd0d
call fcn.004093d0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b9f0
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x154]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba04
sub eax, esi
lea esi, [eax + edx + 8]
push esi
call fcn.00412765
add esp, 4
mov dword [ebp - 0x180], eax
test eax, eax
je 0x40ba11
lea eax, [ebp - 0x154]
push eax
push ecx
call fcn.004093d0
mov esi, dword [ebp - 0x180]
add esp, 4
push eax
push 0x425b20
push esi
call fcn.004128a6
add esp, 0x10
lea ecx, [ebp - 0x17c]
push ecx
push esi
mov dword [ebp - 0x17c], 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x40ba7e
push 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x40bcd7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x12
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x48]
add esp, 4
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004130a0
add esp, 8
test eax, eax
je 0x40bbd3
lea esp, [esp]
push 4
call fcn.00412765
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bab0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx], eax
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bad2
sub eax, edx
lea esi, [eax + 1]
mov edi, edi
push esi
call fcn.00412765
add esp, 4
mov dword [ebp - 0x17c], eax
test eax, eax
je 0x40bae0
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x154]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bb03
push 0x42a84c
call fcn.00402c80
add esp, 4
push 0x42a850
call fcn.00402c80
mov eax, dword [0x42a524]
mov edi, dword [0x42a84c]
add esp, 4
inc eax
mov dword [0x42a524], eax
lea esi, [eax*4]
nop
push esi
push edi
call fcn.004127f9
add esp, 8
test eax, eax
je 0x40bb40
mov edi, dword [0x42a850]
mov dword [0x42a84c], eax
lea esp, [esp]
push esi
push edi
call fcn.004127f9
add esp, 8
test eax, eax
je 0x40bb60
mov edx, dword [0x42a84c]
mov dword [0x42a850], eax
mov eax, dword [ebp - 0x17c]
mov dword [esi + edx - 4], eax
mov ecx, dword [0x42a850]
mov dword [esi + ecx - 4], ebx
mov esi, 0x42a84c
call fcn.00402d80
mov esi, 0x42a850
call fcn.00402d80
push 0xb2
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x2c8]
add esp, 4
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcd1
call eax
jmp 0x40bcd1
push 0x11
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0x44]
add esp, 4
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.004130a0
add esp, 8
test eax, eax
je 0x40bcd7
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00415c60
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x198]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push esi
push eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc50
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00412765
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bc60
lea eax, [ebp - 0x154]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x40bc80
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40bc80
push 0x42a848
call fcn.00402c80
mov eax, dword [0x42a528]
mov edi, dword [0x42a848]
add esp, 4
inc eax
mov dword [0x42a528], eax
lea esi, [eax*4]
nop
push esi
push edi
call fcn.004127f9
add esp, 8
test eax, eax
je 0x40bcb0
mov dword [0x42a848], eax
mov dword [esi + eax - 4], ebx
mov esi, 0x42a848
call fcn.00402d80
mov esi, dword [ebp - 0x180]
push esi
call fcn.0041272b
mov esi, dword [ebp - 0x188]
add esp, 4
lea edx, [ebp - 0x178]
push edx
push esi
call fcn.00413910
add esp, 8
test eax, eax
je 0x40b9e4
push esi
call fcn.00413a3e
mov esi, dword [ebp - 0x184]
add esp, 4
push esi
call fcn.0041272b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret