Function at 0x406b80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486545
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
xor eax, eax
mov dword [ebp - 0x38], 0
push esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
cmp eax, 2
je 0x406c99
cmp eax, 4
je 0x406c99
mov dword [ebp - 0x10], 0
mov dword [ebp + 8], 0
cmp eax, 1
jne 0x406bf4
mov dword [ebp + 8], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00428780
jmp 0x406cb0
cmp eax, 3
jne 0x406c88
lea eax, [ebp - 0x50]
push eax
call fcn.0040dd10
mov esi, eax
add esp, 4
lea eax, [ebp - 0x38]
cmp eax, esi
je 0x406c7e
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x406c4c
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406c42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f6d
push edx
push ecx
call fcn.0041d4df
add esp, 8
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x50]
call fcn.004011d0
jmp 0x406cb3
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 1
push eax
mov dword [ebp + 8], 0
call fcn.00428150
add esp, 4
cmp byte [ebp + 0x10], 0
push edi
je 0x406df3
nop
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0x100401
cmovae eax, dword [ebp - 0x38]
push 1
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004260b0
add esp, 0x14
cmp dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
jbe 0x406de7
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
cmp byte [esi + 0xd], 0
jne 0x406d99
nop
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x406d4c
cmp dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0
je 0x406d24
call fcn.00437d40
jmp 0x406d36
cmp dword [ebp + 8], 0
je 0x406d31
call fcn.00438040
jmp 0x406d36
call fcn.00437a40
add esp, 0x10
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x406d74
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x406d70
nop
cmp esi, dword [eax + 8]
jne 0x406d70
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x406d60
mov esi, eax
jmp 0x406d8c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x406d8c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x406d80
cmp byte [esi + 0xd], 0
je 0x406d00
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jle 0x406de7
mov esi, dword [eax + 4]
dec ecx
mov dword [ebp + 0x18], ecx
mov byte [ebp - 4], 0
cmp byte [esi + 0xd], 0
jne 0x406dd7
push dword [esi + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, eax
call fcn.00402140
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0041d4df
add esp, 8
cmp byte [esi + 0xd], 0
je 0x406db1
mov eax, dword [ebp - 0x18]
push 0x18
push eax
call fcn.0041d4df
add esp, 8
jmp 0x406cc0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00403c70
cmp byte [ebp + 0x14], 0
je 0x406f1f
mov edi, 1
mov dword [ebp + 8], edi
nop word [eax + eax]
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0x100401
cmovae eax, dword [ebp - 0x38]
push 1
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004260b0
add esp, 0x14
cmp dword [ebp - 0x14], 0
jbe 0x406f17
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x406eb8
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
test edi, edi
je 0x406e73
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406e6c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x406e99
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x406e95
cmp esi, dword [eax + 8]
jne 0x406e95
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x406e85
mov esi, eax
jmp 0x406eaf
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x406eaf
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x406ea3
cmp byte [esi + 0xd], 0
je 0x406e46
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x406f17
dec eax
mov dword [ebp + 0x1c], eax
test edi, edi
jne 0x406ed1
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406ed6
xor edi, edi
mov dword [ebp + 8], edi
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x406f05
push dword [esi + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, eax
call fcn.00402140
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.0041d4df
add esp, 8
cmp byte [esi + 0xd], 0
je 0x406ee2
push 0x18
push dword [ebp - 0x18]
call fcn.0041d4df
add esp, 8
jmp 0x406e10
lea ecx, [ebp - 0x18]
call fcn.00403c70
mov edx, dword [ebp - 0x24]
mov al, 1
mov byte [ebp + 0xb], al
pop edi
cmp edx, 8
jb 0x406f5e
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f72
push edx
push ecx
call fcn.0041d4df
mov al, byte [ebp + 0xb]
add esp, 8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00450b4f
call fcn.00450b4f
int3