Function at 0x465a04
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040547c
mov eax, dword [ebp - 8]
call fcn.0040547c
xor eax, eax
push ebp
push 0x465c21
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x465be7
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00465884
mov eax, ebx
xor edx, edx
cmp edx, 0
jne 0x465a63
cmp eax, 0x7fffffff
je 0x465a6a
cmp ebx, 0xffffffff
jne 0x465a6f
or esi, 0xffffffff
jmp 0x465a75
imul esi, ebx, 0x3e8
mov edx, dword [ebp - 4]
mov eax, 0x465c3c
call fcn.004055d0
test eax, eax
jle 0x465aae
cmp dword [ebp - 4], 0
je 0x465aae
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
je 0x465aae
push 0x465c48
push dword [ebp - 4]
push 0x465c48
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405354
cmp dword [ebp - 4], 0
je 0x465b16
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
jne 0x465ad6
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x465c48
mov edx, 0x465c48
mov eax, dword [ebp - 4]
call fcn.0045c540
jmp 0x465af7
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x10]
call fcn.004058b0
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.0045faac
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.0040525c
mov eax, dword [ebp - 0x10]
call fcn.00405294
test eax, eax
jle 0x465b16
mov eax, dword [ebp - 0x10]
call fcn.00405294
mov edx, eax
dec edx
lea eax, [ebp - 0x10]
call fcn.00405618
cmp byte [ebp + 0xc], 0
je 0x465b23
mov edi, 0xa
jmp 0x465b25
xor edi, edi
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.004035a4
mov dword [ebp - 0x4c], 0x3c
test ebx, ebx
jne 0x465b46
xor eax, eax
mov dword [ebp - 0x48], eax
jmp 0x465b4d
mov dword [ebp - 0x48], 0x140
xor eax, eax
mov dword [ebp - 0x44], eax
cmp byte [ebp + 8], 0
je 0x465b62
mov eax, 0x465c4c
mov dword [ebp - 0x40], eax
jmp 0x465b67
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
call fcn.0040548c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.0040548c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x4c]
push eax
call dword [0x4a03b0]
test eax, eax
jne 0x465b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x465bf1
test ebx, ebx
jbe 0x465bd9
mov ebx, dword [ebp - 0x14]
push esi
push ebx
call sub.user32.dll_WaitForInputIdle
push esi
push ebx
call sub.kernel32.dll_WaitForSingleObject_1
sub eax, 1
jb 0x465bbb
sub eax, 0x101
je 0x465bcb
jmp 0x465bdd
mov byte [ebp - 9], 1
mov eax, dword [ebp + 0x10]
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
jmp 0x465bdd
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
push ebx
call sub.kernel32.dll_TerminateProcess
jmp 0x465bdd
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x465bf1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465c28
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004056e4
lea eax, [ebp - 0x10]
call fcn.00404fdc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405000
ret