Function at 0x4045a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, edx
mov eax, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
call fcn.00402e20
mov esi, eax
lea ebx, [edi + 0x10]
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x40476d
nop
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40ba30
call fcn.00406410
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x4045ea
mov edx, dword [edi]
push dword [ebx]
mov ecx, eax
call fcn.00408480
add esp, 4
mov edx, 0x40ba30
mov ecx, eax
call fcn.00406410
push 0x406630
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [esp + 0x20]
call fcn.00401950
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
cmp ebx, 0xf4143dff
jne 0x404630
cmp esi, 0x7fffffff
je 0x404657
cmp esi, 0x7fffffff
jg 0x404646
jl 0x404642
cmp ebx, 0xf4143dff
jae 0x404646
or al, 0xff
jmp 0x404648
mov al, 1
test al, al
jns 0x404657
add ebx, 0xbebc200
adc esi, 0
jmp 0x40465f
or ebx, 0xffffffff
mov esi, 0x7fffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x28]
call fcn.00401950
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp ebx, edx
jne 0x404684
cmp esi, ecx
je 0x404752
cmp esi, ecx
jg 0x404692
jl 0x40468e
cmp ebx, edx
jae 0x404692
or al, 0xff
jmp 0x404694
mov al, 1
test al, al
jle 0x404752
sub ebx, edx
sbb esi, ecx
cmp ebx, 0x914f0000
jne 0x4046d0
cmp esi, 0x4e94
jne 0x4046d6
push 0
push 0xf4240
push esi
push ebx
call fcn.00409d20
mov edi, eax
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
jmp 0x404667
cmp esi, 0x4e94
jg 0x4046e6
jl 0x4046e2
cmp ebx, 0x914f0000
jae 0x4046e6
or al, 0xff
jmp 0x4046e8
mov al, 1
test al, al
jle 0x404704
mov edi, 0x5265c00
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
jmp 0x404667
push 0
push 0xf4240
push esi
push ebx
call fcn.00409d20
push 0
push 0xf4240
mov edi, eax
push edx
push edi
call fcn.00409eb0
cmp eax, ebx
jne 0x40472a
cmp edx, esi
je 0x40473f
cmp edx, esi
jg 0x404738
jl 0x404734
cmp eax, ebx
jae 0x404738
or al, 0xff
jmp 0x40473a
mov al, 1
test al, al
jns 0x40473f
inc edi
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
jmp 0x404667
mov ecx, dword [esp + 0x18]
call fcn.00402e20
mov edi, dword [esp + 0x1c]
mov esi, eax
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x4045d0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Found_process:
call fcn.00406410
cmp dword [edi + 0x14], 0xf
jbe 0x404785
mov edi, dword [edi]
push dword [ebx]
mov edx, edi
mov ecx, eax
call fcn.00408480
add esp, 4
mov edx, str.__Process_ID:
mov ecx, eax
call fcn.00406410
push esi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov edx, 0x40b56c
mov ecx, eax
call fcn.00406410
push 0x406630
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xf
jbe 0x4047cc
mov edx, dword [edx]
mov ecx, esi
call fcn.00403490
test al, al
je 0x4047fc
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Injection_successful_
call fcn.00406410
push 0x406630
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Injection_failed_
call fcn.00406410
push 0x406630
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret