Function at 0x409020
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c01f
mov eax, dword fs:[0]
push eax
mov eax, 0x40f0
call fcn.00415840
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x40907c
cmp ecx, dword [esi - 0x10]
jne 0x40907c
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x4090a9
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4094d4
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
lea edx, [eax + eax]
push edx
push esi
call fcn.00401580
add esp, 8
lea esi, [edi + 0x10]
mov dword [ebp - 0x4020], esi
mov byte [ebp - 4], 1
mov edi, dword [esi - 0xc]
test edi, edi
js 0x4094d9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4090e4
push edi
lea ecx, [ebp - 0x4020]
call fcn.00402ef0
mov esi, dword [ebp - 0x4020]
lea eax, [edi + 1]
push eax
push esi
call fcn.0041f47f
add esp, 8
cmp edi, dword [esi - 8]
jg 0x4094d9
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
or ebx, 0xffffffff
mov edi, dword [esi - 0xc]
mov dword [ebp - 0x4024], edi
cmp edi, 4
jl 0x40947a
cmp edi, 0x104
jg 0x40947a
call fcn.0040e400
push 0x4000
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x401c], 0
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0x401c]
push eax
push 0x1000
lea eax, [ebp - 0x4014]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40947a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x4028], ecx
mov dword [ebp - 0x402c], ebx
cmp dword [ebp - 0x401c], ebx
jbe 0x409470
nop dword [eax]
mov eax, dword [ebp + ebx*4 - 0x4014]
cmp ecx, eax
je 0x40945d
push eax
lea eax, [ebp - 0x4018]
mov dword [ebp - 0x4018], 0
push eax
call fcn.0040e580
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4018]
cmp dword [eax - 0xc], 0
je 0x409435
lea ecx, [ebp - 0x4018]
call fcn.0040c750
push edi
push dword [ebp - 0x4018]
push esi
call fcn.0041f4cf
add esp, 0xc
test eax, eax
jne 0x409435
push dword [ebp + ebx*4 - 0x4014]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x4034], edi
test edi, edi
je 0x40942f
call fcn.00417780
mov ecx, eax
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x40941f
mov eax, dword [ebp - 0x4018]
lea ecx, [ebp - 0x4064]
push 0x51
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcutils.cc
mov dword [ebp - 0x4030], eax
mov dword [ebp - 0x4054], 0
mov dword [ebp - 0x4050], 0xf
mov byte [ebp - 0x4064], 0
call fcn.00407580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x404c]
push 3
push 0x44d57c
mov dword [ebp - 0x403c], 0
mov dword [ebp - 0x4038], 0xf
mov byte [ebp - 0x404c], 0
call fcn.00407580
mov byte [ebp - 4], 4
call fcn.00417780
mov ebx, eax
lea ecx, [ebp - 0x40fc]
push 0x40
lea eax, [ebp - 0x4064]
push eax
lea eax, [ebp - 0x404c]
push eax
call fcn.00404d90
mov edi, eax
push str._KillRelatedProcess__kill:
push edi
mov byte [ebp - 4], 5
call fcn.00407bf0
mov eax, dword [ebp - 0x4030]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push edi
call fcn.00407bf0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x40fc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x40fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x4100], eax
lea ecx, [ebp - 0x40f8]
call fcn.00406b50
mov eax, dword [ebp - 0x40fc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x40fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x4100], eax
lea eax, [ebp - 0x40ac]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00411d35
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x4038]
cmp edx, 0x10
jb 0x40939f
mov ecx, dword [ebp - 0x404c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409395
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094e3
push edx
push ecx
call fcn.004155ab
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4050]
mov dword [ebp - 0x403c], 0
mov dword [ebp - 0x4038], 0xf
mov byte [ebp - 0x404c], 0
cmp edx, 0x10
jb 0x4093f8
mov ecx, dword [ebp - 0x4064]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4093ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094e3
push edx
push ecx
call fcn.004155ab
add esp, 8
mov ebx, dword [ebp - 0x402c]
mov edi, dword [ebp - 0x4034]
mov dword [ebp - 0x4054], 0
mov dword [ebp - 0x4050], 0xf
mov byte [ebp - 0x4064], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x4024]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x4018]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409457
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x4028]
inc ebx
mov dword [ebp - 0x402c], ebx
cmp ebx, dword [ebp - 0x401c]
jb 0x409190
mov edi, 1
or ebx, 0xffffffff
jmp 0x40947c
xor edi, edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409497
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4094b6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret
call fcn.00403150
push 0x80070057
call fcn.00401660
call fcn.0041e989
int3