Function at 0x4605c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x535317
call fcn.004eec88
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0xb4], ecx
cmp dword [ebp + 8], 8
ja 0x4605e4
jmp 0x4608b3
cmp dword [0x597f90], 0
je 0x4605fc
call dword [0x597f90]
test eax, eax
je 0x4605fc
jmp 0x4608b3
cmp dword [0x597f8c], 0
jne 0x4606c5
push 0xc
push 0x54942c
call fcn.004146a0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x80]
call fcn.00509cfa
pop ecx
cmp dword [ebp - 0x14], 0
je 0x4606c5
push 0x11
push 0x549444
call fcn.004146a0
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x597f90], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x84], eax
push dword [ebp - 0x84]
call fcn.00509cfa
pop ecx
cmp dword [0x597f90], 0
je 0x46068e
call dword [0x597f90]
test eax, eax
je 0x46068e
jmp 0x4608b3
push 0xa
push 0x549438
call fcn.004146a0
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x597f8c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x88], eax
push dword [ebp - 0x88]
call fcn.00509cfa
pop ecx
call fcn.0042dbff
test eax, eax
jne 0x4606db
cmp dword [0x597f8c], 0
je 0x4608b3
lea ecx, [ebp - 0x38]
call fcn.00508c66
and dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00508c66
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0041451c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.004146dc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x3c], 0
jmp 0x460721
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x20]
jge 0x460829
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x58], eax
and dword [ebp - 0x54], 0
call fcn.0042dbff
test eax, eax
je 0x4607e8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x64], eax
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0x1f03ff
call fcn.0046054b
mov dword [ebp - 0x60], eax
and dword [ebp - 0x74], 0
push dword [ebp - 0x64]
push dword [ebp - 0x60]
call fcn.0046056a
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x46077f
jmp 0x46071a
push str.OpenProcess
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x68]
cmp byte [esi], 0x68
jne 0x4607a7
mov eax, dword [esi + 1]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
cmp dword [eax], 0xc2474ff
je 0x4607b4
jmp 0x4607e0
mov esi, dword [ebp - 0x68]
mov edi, esi
add edi, 0x14
cmp byte [edi], 0x74
jne 0x4607e0
mov edi, dword [ebp - 0x68]
add edi, 0x24
cmp dword [edi], 0xb9
jne 0x4607e0
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
call edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
jmp 0x4607fb
push dword [ebp - 0x58]
push 0
push 0x1f03ff
call dword [0x597f8c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x460824
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0x54]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x50]
call fcn.00508ddf
jmp 0x46071a
and dword [ebp - 0x3c], 0
jmp 0x460836
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x20]
jge 0x46085a
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0xb4]
call fcn.004608c4
jmp 0x46082f
and dword [ebp - 0x3c], 0
jmp 0x460867
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x20]
jge 0x46088f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x460860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00414541
and byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00508c99
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00508c99
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4