Function at 0x40db80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x42d024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040aeb0
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.00414909
add esp, 8
test eax, eax
je 0x40dbd5
call fcn.0040aeb0
push eax
call fcn.004164a7
add esp, 4
call fcn.0040aeb0
push 0
push eax
call fcn.0040a180
call fcn.0040aeb0
push eax
call fcn.0040a440
add esp, 0xc
call fcn.0040aeb0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dbe0
sub eax, edx
lea edi, [eax + 8]
lea esp, [esp]
push edi
call fcn.00414f9a
mov esi, eax
add esp, 4
mov dword [ebp - 0x184], esi
test esi, esi
je 0x40dbf0
call fcn.0040aeb0
push eax
push str._s
push esi
call fcn.0041512c
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push esi
call fcn.00415fe8
add esp, 8
mov dword [ebp - 0x180], eax
test eax, eax
je 0x40dfec
cmp eax, 0xffffffff
je 0x40dfec
call fcn.0040aeb0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dc48
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x154]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dc60
sub eax, esi
lea esi, [eax + edx + 8]
lea ecx, [ecx]
push esi
call fcn.00414f9a
mov edi, eax
add esp, 4
mov dword [ebp - 0x188], edi
test edi, edi
je 0x40dc70
lea eax, [ebp - 0x154]
push eax
push ecx
call fcn.0040aeb0
add esp, 4
push eax
push 0x42a684
push edi
call fcn.0041512c
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dcb0
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00414f9a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18c], ebx
test ebx, ebx
je 0x40dcc0
push ebx
push 0
push 0
push 0
push edi
call fcn.0041645b
add esp, 0x14
lea ecx, [ebp - 0x17c]
push ecx
push edi
mov dword [ebp - 0x17c], 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x40dd1a
push 0x20
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x40dfa1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x12
call fcn.004051a0
mov edx, dword [0x42f218]
mov ecx, dword [edx + 0x48]
add esp, 4
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dd50
test dl, dl
je 0x40dd4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dd50
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dd30
xor eax, eax
jmp 0x40dd55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40de83
lea ecx, [ecx]
push 4
call fcn.00414f9a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dd60
push edi
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 0x40dd82
sub eax, edx
lea esi, [eax + 1]
mov edi, edi
push esi
call fcn.00414f9a
mov edx, eax
add esp, 4
mov dword [ebp - 0x17c], edx
test edx, edx
je 0x40dd90
lea eax, [ebp - 0x154]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ddb0
push 0x42fa24
call fcn.00403be0
add esp, 4
push 0x42fa1c
call fcn.00403be0
mov eax, dword [0x42f6fc]
mov edi, dword [0x42fa24]
add esp, 4
inc eax
mov dword [0x42f6fc], eax
lea esi, [eax*4]
lea esp, [esp]
push esi
push edi
call fcn.0041507f
add esp, 8
test eax, eax
je 0x40ddf0
mov edi, dword [0x42fa1c]
mov dword [0x42fa24], eax
lea esp, [esp]
push esi
push edi
call fcn.0041507f
add esp, 8
test eax, eax
je 0x40de10
mov edx, dword [0x42fa24]
mov dword [0x42fa1c], eax
mov eax, dword [ebp - 0x17c]
mov dword [esi + edx - 4], eax
mov ecx, dword [0x42fa1c]
mov dword [esi + ecx - 4], ebx
mov esi, 0x42fa24
call fcn.00403ce0
mov esi, 0x42fa1c
call fcn.00403ce0
push 0xb8
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x2e0]
add esp, 4
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dfa1
call eax
jmp 0x40dfa1
push 0x11
call fcn.004051a0
mov ecx, dword [0x42f218]
mov ecx, dword [ecx + 0x44]
add esp, 4
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40deb8
test dl, dl
je 0x40deb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40deb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40de98
xor eax, eax
jmp 0x40debd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40dfa1
push 0x44
push eax
lea edx, [ebp - 0x50]
push edx
call fcn.00418380
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0x100
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [ebp - 0x154]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40df20
sub eax, edx
lea esi, [eax + 1]
lea esp, [esp]
push esi
call fcn.00414f9a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40df30
lea eax, [ebp - 0x154]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x40df50
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40df50
push 0x42fa20
call fcn.00403be0
mov eax, dword [0x42f700]
mov edi, dword [0x42fa20]
add esp, 4
inc eax
mov dword [0x42f700], eax
lea esi, [eax*4]
nop
push esi
push edi
call fcn.0041507f
add esp, 8
test eax, eax
je 0x40df80
mov dword [0x42fa20], eax
mov dword [esi + eax - 4], ebx
mov esi, 0x42fa20
call fcn.00403ce0
mov edx, dword [ebp - 0x188]
push edx
call fcn.00414f60
mov eax, dword [ebp - 0x18c]
add esp, 4
push eax
call fcn.00414f60
mov esi, dword [ebp - 0x180]
add esp, 4
lea ecx, [ebp - 0x178]
push ecx
push esi
call fcn.0041610f
add esp, 8
test eax, eax
je 0x40dc40
push esi
call fcn.0041623d
mov esi, dword [ebp - 0x184]
add esp, 4
push esi
call fcn.00414f60
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413f0d
mov esp, ebp
pop ebp
ret