Function at 0x407ee0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e06b7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x66a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
cmp byte [0x673629], 0
je 0x407f2b
push 0x613a24
call fcn.00407e20
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x10], 6
cmp edi, 0xffffffff
je 0x4083c0
mov edx, dword [ebp + 8]
test edx, edx
je 0x4083c0
test eax, eax
je 0x4083c0
cmp byte [ebp + 0xc], 0
je 0x408086
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004be8a0
test al, al
jne 0x407fc6
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40807e
mov eax, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x407fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4083d7
push edx
push ecx
jmp 0x408061
mov ecx, dword [ebp - 0x28]
xor esi, esi
mov edx, dword [ebp - 0x2c]
xor ebx, ebx
sub ecx, edx
add ecx, 3
shr ecx, 2
cmp edx, dword [ebp - 0x28]
cmova ecx, esi
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x408027
mov edi, edx
push dword [edi]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408018
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7530
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 4
cmp ebx, dword [ebp - 0x1c]
jne 0x407fe7
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x40807e
mov eax, dword [ebp - 0x24]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x40805f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4083dc
push ecx
push edx
call fcn.005b7992
mov dword [ebp - 0x24], 0
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.004ace60
mov edx, dword [ebp + 8]
cmp edi, 0xd
je 0x40809e
cmp edi, 0xe
je 0x40809e
cmp edi, 0xf
je 0x40809e
cmp edi, 0x10
jne 0x408140
lea esi, [edx + 0x10]
test esi, esi
je 0x4080b5
mov eax, dword [esi]
test eax, eax
je 0x4080b5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4080cb
nop dword [eax]
cmp dword [eax + 8], edi
je 0x408116
mov eax, dword [eax]
cmp eax, ecx
jne 0x4080c0
mov dword [ebp - 4], 2
test esi, esi
je 0x4080e6
mov eax, dword [esi]
test eax, eax
je 0x4080e6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
push 1
push edi
mov ecx, edx
call fcn.00416970
mov eax, dword [ebp + 8]
add eax, 8
xchg dword [eax], edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0xc]
mov dword [ebp - 4], 1
test esi, esi
je 0x408134
mov eax, dword [esi]
test eax, eax
je 0x408134
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 4
jne 0x4080ed
push 2
push edi
mov ecx, edx
call fcn.00416970
mov ebx, dword [ebp + 8]
mov eax, edi
lea ecx, [ebx + 8]
xchg dword [ecx], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x40817a
mov eax, dword [esi]
test eax, eax
je 0x40817a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x408191
cmp dword [eax + 8], edi
je 0x408241
mov eax, dword [eax]
cmp eax, ecx
jne 0x408182
mov dword [ebp - 4], 4
test esi, esi
je 0x4081a9
mov eax, dword [esi]
test eax, eax
je 0x4081a9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
push edi
call fcn.004174f0
mov ebx, eax
test ebx, ebx
je 0x408347
cmp byte [0x673629], 0
je 0x4081d9
push 0x61f448
call fcn.00407e20
add esp, 4
push 8
call fcn.005b75ca
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 4], 0xffffffff
mov dword [eax], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push eax
push 0x416620
push 0
mov dword [eax + 4], ebx
push 0
mov dword [ebp - 0x20], 0
call fcn.005c05b0
add esp, 0x18
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x408253
push 8
push dword [ebp - 0x1c]
call fcn.005b7992
add esp, 8
jmp 0x408347
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
jmp 0x408198
cmp byte [0x673629], 0
je 0x408269
push 0x61f460
call fcn.00407e20
add esp, 4
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x408277
xor ecx, ecx
jmp 0x408303
push dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
cmp eax, 0x102
jne 0x4082c6
cmp byte [0x673629], 0
je 0x4082a8
push 0x61f478
call fcn.00407e20
add esp, 4
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4082bf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 0x24], 0
mov ecx, 3
jmp 0x408303
cmp byte [0x673629], 0
je 0x4082df
push 0x61f490
call fcn.00407e20
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
jne 0x4082f0
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x24], 0
cmp dword [ebp - 0x14], 0
jne 0x408318
cmp byte [ebx + 0x28], 0
je 0x408318
mov dword [ebp - 0x10], 3
jmp 0x408347
cmp ecx, 1
jne 0x408326
mov dword [ebp - 0x10], 5
jmp 0x408347
cmp ecx, 2
jne 0x408334
mov dword [ebp - 0x10], 3
jmp 0x408347
cmp ecx, 3
mov eax, 6
mov edx, 7
cmove eax, edx
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x14]
inc ebx
test esi, esi
je 0x40835c
mov eax, dword [esi]
test eax, eax
je 0x40835c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x408372
cmp dword [eax + 8], edi
je 0x4083b4
mov eax, dword [eax]
cmp eax, ecx
jne 0x408367
mov dword [ebp - 4], 7
test esi, esi
je 0x40838d
mov eax, dword [esi]
test eax, eax
je 0x40838d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov ecx, edx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00416970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x18], ebx
mov dword [ebp - 4], 6
jmp 0x408379
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
call fcn.005c00b0
int3