Function at 0x406fc0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x48fa51
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4b8968]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8968]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.0045258f
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40701d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x28]
sub eax, 0x10
push eax
mov dword [esp + 0x178], ebx
call fcn.004019a0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], esi
or ebp, 0xffffffff
lea ecx, [esp + 0x2c]
mov byte [esp + 0x174], 1
mov dword [esp + 0x1c], ebp
call fcn.00428f20
cmp dword [esi - 0xc], ebx
mov byte [esp + 0x174], 2
lea ecx, [esp + 0x2c]
jne 0x4070c9
mov byte [esp + 0x174], 1
call fcn.00428f40
lea eax, [esi - 0x10]
mov byte [esp + 0x174], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x174], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4070c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4072bb
push ebx
call fcn.00428f70
test al, al
jne 0x40712d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x174], 1
call fcn.00428f40
lea eax, [esi - 0x10]
mov byte [esp + 0x174], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407106
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x174], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4070c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4072bb
lea ecx, [esp + 0x20]
call fcn.004021d0
lea ecx, [esp + 0x2c]
call fcn.00429bc0
mov ebp, dword [esp + 0x20]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x407251
call fcn.0042cb10
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00429800
test al, al
je 0x407251
nop
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407177
sub eax, edx
push eax
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x1c]
call fcn.004020c0
lea ecx, [esp + 0x14]
call fcn.004021d0
cmp ebp, ebx
mov edi, dword [esp + 0x14]
je 0x407238
cmp dword [edi - 0xc], ebx
jl 0x407238
push ebp
push edi
call fcn.00473b3d
add esp, 8
cmp eax, ebx
je 0x407238
sub eax, edi
js 0x407238
mov eax, dword [esp + 0x60]
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40722d
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042d830
add esp, 4
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x407200
mov edx, dword [esp + 0x18]
mov dword [edx + 0x5c], 1
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40721a
cmp dword [esp + 0x1c], 0x103
jne 0x40722d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x5c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
lea edx, [esp + 0x64]
push edx
push esi
lea ecx, [esp + 0x38]
call fcn.00429800
test al, al
jne 0x407170
push esi
lea ecx, [esp + 0x30]
call fcn.00429690
lea ecx, [esp + 0x2c]
mov byte [esp + 0x174], 1
call fcn.00428f40
lea eax, [ebp - 0x10]
mov byte [esp + 0x174], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40728f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00473559
add esp, 0x164
ret