Function at 0x408240
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x461f48
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x70]
xor ebp, ebp
push 0x467228
add ecx, 0x11c
mov dword [edi + 0x88], ebp
call fcn.0045755c
mov eax, dword [edi + 0xac]
push 1
push eax
push ebp
mov ecx, edi
call fcn.00406670
mov eax, dword [0x47d418]
cmp eax, ebp
je 0x40834c
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
mov ecx, dword [0x47d418]
jne 0x408338
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4082d8
mov edx, dword [0x47d414]
mov eax, dword [0x47d418]
push edx
push eax
push str._vzg
jmp 0x408344
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00414a20
mov edx, dword [eax]
mov eax, dword [0x47d414]
mov ecx, dword [0x47d418]
push edx
push eax
push ecx
push 0x4671b0
mov dword [esp + 0xdc], ebp
call fcn.00402ab0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x18
mov dword [esp + 0xc4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40834c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40834c
mov eax, dword [0x47d414]
push eax
push ecx
push str._vz_
call fcn.00402ab0
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.0040b170
lea edx, [esp + 0x34]
mov dword [0x47d470], edx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc4], 1
mov dword [0x47d474], ebp
mov dword [0x47d478], ebp
mov dword [0x47d47c], edi
mov dword [esp + 0x70], fcn.0040fd50
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
mov eax, dword [edi + 0x128]
mov esi, dword [eax + 0x10088]
mov eax, dword [eax + 0x1008c]
cmp esi, eax
mov byte [esp + 0xc4], 2
mov dword [esp + 0x10], eax
je 0x40851d
lea ebx, [ebx]
mov dword [0x47d474], esi
mov eax, dword [esi + 0x2c]
push ebp
push eax
lea ecx, [esp + 0x3c]
call fcn.0040bd40
test eax, eax
je 0x4085cb
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x34]
push 0x4067b0
push ebp
push ecx
sub eax, 0x10
mov dword [esp + 0x34], esp
mov ebx, esp
push eax
call fcn.004017d0
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [edi + 0x138]
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov ebx, esp
push eax
mov byte [esp + 0xdc], 3
call fcn.004017d0
lea ecx, [esp + 0x44]
add esp, 4
add eax, 0x10
push ecx
mov dword [ebx], eax
mov byte [esp + 0xdc], 2
call fcn.004187d0
add esp, 0xc
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x34]
push ecx
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov ebx, esp
push eax
mov byte [esp + 0xdc], 4
call fcn.004017d0
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [edi + 0x130]
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov ebx, esp
push eax
mov byte [esp + 0xe0], 5
call fcn.004017d0
lea edx, [esp + 0x4c]
add esp, 4
add eax, 0x10
push edx
mov dword [ebx], eax
mov byte [esp + 0xe0], 4
call fcn.004187d0
add esp, 0xc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xd8], 6
call fcn.0040c010
mov ebx, eax
mov eax, dword [esp + 0x30]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0xc4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x4085cb
mov eax, dword [esp + 0x10]
add esi, 0x38
cmp esi, eax
jne 0x4083c0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [0x47d428]
or esi, 0x10
cmp ecx, ebp
mov dword [0x47d428], esi
mov byte [esp + 0xc4], 1
je 0x40858d
cmp ecx, edx
mov edi, edx
mov esi, ecx
je 0x408584
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40855d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0x10
cmp esi, edi
jne 0x408540
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00455706
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0xc4], 0xffffffff
call fcn.0040b310
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret
mov eax, dword [0x47d478]
push 1
push ebp
push eax
mov ecx, edi
call fcn.00406670
call fcn.00456047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
mov byte [esp + 0xc4], 7
mov ebp, eax
je 0x408673
push esi
call fcn.0040b5c0
add esp, 4
test eax, eax
jne 0x408651
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x14]
push 0x46714c
push ecx
call fcn.004023d0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x25
push ebx
call fcn.0045d7ea
cmp eax, 4
jne 0x408651
push 0x467144
call fcn.00402ab0
push esi
call fcn.0040b5c0
add esp, 8
test eax, eax
je 0x408611
mov ecx, dword [esi + 8]
mov eax, dword [0x47d478]
push 0
sub eax, ecx
push 0
push eax
mov ecx, edi
mov dword [0x47d478], eax
call fcn.00406670
add esi, 0x10
cmp esi, ebp
jne 0x408604
mov esi, dword [0x47d428]
or esi, 0x10
lea eax, [ebx - 0x10]
mov dword [0x47d428], esi
mov byte [esp + 0xc4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4086a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebx
mov byte [esp + 0xc4], 1
je 0x40870d
mov eax, dword [esp + 0x1c]
cmp esi, eax
mov edi, eax
je 0x408704
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0x10
cmp esi, edi
jne 0x4086c0
mov esi, dword [esp + 0x18]
push esi
call fcn.00455706
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc4], 0xffffffff
call fcn.0040b310
xor eax, eax
jmp 0x4085b2