Function at 0x40d120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44ba40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], 0
jbe 0x40d15b
call fcn.00432c1e
mov ebx, 0xf
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x40d16d
call fcn.00432c1e
cmp edi, ebp
je 0x40d37a
cmp edi, dword [esi + 8]
jb 0x40d17f
call fcn.00432c1e
cmp dword [edi + 0x58], 0
je 0x40d209
cmp edi, dword [esi + 8]
jb 0x40d193
call fcn.00432c1e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push 0
lea ebp, [edi + 0x1c]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], 0
push ebp
mov byte [ecx + 4], 0
call fcn.00402280
xor eax, eax
sub esp, 0x1c
mov dword [esp + 0x60], eax
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x1d
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], eax
push str.CUpdateProcess::KillProcesses
mov byte [ecx + 4], al
call fcn.004024f0
mov dword [esp + 0x60], 0xffffffff
call fcn.004041e0
cmp edi, dword [esi + 8]
jb 0x40d1f2
call fcn.00432c1e
cmp dword [ebp + 0x18], 0x10
jb 0x40d1fd
mov ecx, dword [ebp + 4]
jmp 0x40d200
lea ecx, [ebp + 4]
call fcn.00402fd0
test eax, eax
jne 0x40d220
add dword [esp + 0x14], 1
cmp edi, dword [esi + 8]
jb 0x40d218
call fcn.00432c1e
add edi, 0x5c
jmp 0x40d160
cmp edi, dword [esi + 8]
jb 0x40d22a
call fcn.00432c1e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
xor ebp, ebp
lea eax, [edi + 0x1c]
push ebp
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push eax
mov byte [ecx + 4], 0
call fcn.00402280
sub esp, 0x1c
mov dword [esp + 0x60], 1
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x12
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push str.KillProcesses_fail
mov byte [ecx + 4], 0
call fcn.004024f0
mov dword [esp + 0x60], 0xffffffff
call fcn.004041e0
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov edi, eax
jl 0x40d365
imul eax, eax, 0x5c
mov ebx, eax
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40d2b5
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d2ba
call fcn.00432c1e
mov eax, dword [esi + 4]
cmp dword [ebx + eax + 0x14], ebp
je 0x40d30b
cmp eax, ebp
je 0x40d2e3
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d2e8
call fcn.00432c1e
mov eax, dword [esi + 4]
add eax, ebx
cmp dword [eax + 0x18], 0x10
jb 0x40d2ff
mov eax, dword [eax + 4]
mov ecx, eax
call fcn.004077d0
jmp 0x40d357
add eax, 4
mov ecx, eax
call fcn.004077d0
jmp 0x40d357
cmp eax, ebp
je 0x40d32b
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d330
call fcn.00432c1e
mov eax, dword [esi + 4]
cmp dword [ebx + eax + 0x50], 0x10
lea eax, [ebx + eax + 0x38]
jb 0x40d343
mov eax, dword [eax + 4]
jmp 0x40d346
add eax, 4
push 1
push ebp
push ebp
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
sub edi, 1
sub ebx, 0x5c
cmp edi, ebp
jge 0x40d292
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret