Function at 0x407730
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x49d941
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4cba68]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cba68]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.00460a7a
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40778d
push 0x80004005
call fcn.004010e0
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 + 0x2c]
sub eax, 0x10
push eax
mov dword [esp + 0x178], ebx
call fcn.004017c0
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.0042b840
cmp dword [esi - 0xc], ebx
mov byte [esp + 0x174], 2
lea ecx, [esp + 0x2c]
jne 0x407839
mov byte [esp + 0x174], 1
call fcn.0042b860
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 0x407812
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 0x407832
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407a2b
push ebx
call fcn.0042b890
test al, al
jne 0x40789d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x174], 1
call fcn.0042b860
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 0x407876
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 0x407832
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407a2b
lea ecx, [esp + 0x20]
call fcn.00406ac0
lea ecx, [esp + 0x2c]
call fcn.0042c4a0
mov ebp, dword [esp + 0x20]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x4079c1
call fcn.004316a0
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.0042c0e0
test al, al
je 0x4079c1
nop
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4078e7
sub eax, edx
push eax
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401dd0
lea ecx, [esp + 0x14]
call fcn.00406ac0
cmp ebp, ebx
mov edi, dword [esp + 0x14]
je 0x4079a8
cmp dword [edi - 0xc], ebx
jl 0x4079a8
push ebp
push edi
call fcn.004819a0
add esp, 8
cmp eax, ebx
je 0x4079a8
sub eax, edi
js 0x4079a8
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 0x40799d
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004323c0
add esp, 4
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x407970
mov edx, dword [esp + 0x18]
mov dword [edx + 0x60], 1
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40798a
cmp dword [esp + 0x1c], 0x103
jne 0x40799d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x60], 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.0042c0e0
test al, al
jne 0x4078e0
push esi
lea ecx, [esp + 0x30]
call fcn.0042bf70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x174], 1
call fcn.0042b860
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 0x4079ff
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 0x407a26
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.004820a1
add esp, 0x164
ret