Function at 0x408af0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d4c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
xor eax, eax
mov dword [ebp - 0x34], 0
push ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
cmp eax, 2
je 0x408b6b
cmp eax, 4
je 0x408b6b
xor ebx, ebx
mov dword [ebp + 8], 0
cmp eax, 1
jne 0x408b53
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
call fcn.00435340
jmp 0x408b7d
cmp eax, 3
je 0x408b74
xor bl, bl
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 1
xor ebx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.00434d10
add esp, 4
cmp byte [ebp + 0x10], 0
push esi
push edi
je 0x408cc3
nop dword [eax]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0x100401
cmovae eax, dword [ebp - 0x34]
push 1
push 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00432c70
add esp, 0x14
cmp dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
jbe 0x408cb7
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
cmp byte [esi + 0xd], 0
jne 0x408c69
nop
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x408c1a
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0
je 0x408bf4
call fcn.0044a680
jmp 0x408c04
test ebx, ebx
je 0x408bff
call fcn.0044a980
jmp 0x408c04
call fcn.0044a380
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 0x408c44
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x408c40
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x408c40
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x408c30
mov esi, eax
jmp 0x408c5c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x408c5c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x408c50
cmp byte [esi + 0xd], 0
je 0x408bd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jle 0x408cb7
mov esi, dword [eax + 4]
dec ecx
mov dword [ebp + 0x18], ecx
mov byte [ebp - 4], 0
cmp byte [esi + 0xd], 0
jne 0x408ca7
push dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, eax
call fcn.00402160
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.00429ebb
add esp, 8
cmp byte [esi + 0xd], 0
je 0x408c81
mov eax, dword [ebp - 0x14]
push 0x18
push eax
call fcn.00429ebb
add esp, 8
jmp 0x408b90
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004043a0
cmp byte [ebp + 0x14], 0
je 0x408ded
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 1
mov dword [ebp + 8], edi
nop dword [eax + eax]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0x100401
cmovae eax, dword [ebp - 0x34]
push 1
push 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00432c70
add esp, 0x14
cmp dword [ebp - 0x10], 0
jbe 0x408de5
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x408d85
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x408d3f
push 1
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408d38
push 0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x408d65
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x408d61
cmp esi, dword [eax + 8]
jne 0x408d61
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x408d51
mov esi, eax
jmp 0x408d7c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x408d7c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x408d70
cmp byte [esi + 0xd], 0
je 0x408d16
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x408de5
dec eax
mov dword [ebp + 0x1c], eax
test edi, edi
jne 0x408d9e
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408da3
xor edi, edi
mov dword [ebp + 8], edi
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x408dd3
nop
push dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, eax
call fcn.00402160
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.00429ebb
add esp, 8
cmp byte [esi + 0xd], 0
je 0x408db0
push 0x18
push dword [ebp - 0x14]
call fcn.00429ebb
add esp, 8
jmp 0x408ce0
lea ecx, [ebp - 0x14]
call fcn.004043a0
mov edx, dword [ebp - 0x20]
mov bl, 1
pop edi
pop esi
cmp edx, 8
jb 0x408e27
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408e38
push edx
push ecx
call fcn.00429ebb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004679af
int3