Function at 0x418290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0045b0ea
mov ecx, dword [eax + 4]
call fcn.00450f50
mov dword [ebp - 4], 0
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4182e8
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418315
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0xac]
push ecx
push edx
call fcn.0043a880
mov ecx, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
je 0x418446
mov edi, edi
mov edi, dword [ecx]
mov ecx, dword [edi + 0x10]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4183ab
cmp dword [esi + 0xc], 0
jl 0x41839e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41839e
push eax
call fcn.00407af0
mov dword [ebp - 0x20], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418393
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [ebp - 0x14], ecx
jmp 0x4183ab
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407870
mov eax, dword [edi + 0xc]
cmp eax, 1
jne 0x4183c4
mov edx, dword [ebp - 0x14]
push edx
call fcn.0054df0d
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x418431
mov ecx, dword [ebp - 0x24]
lea edx, [ecx*4 + 1]
cmp eax, edx
jg 0x418446
mov ecx, eax
and ecx, 0x80000001
jns 0x4183e1
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
jle 0x418431
mov edx, dword [eax*4 + 0x5ac398]
push edx
mov ecx, ebx
call fcn.004598c6
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00457aa0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00407af0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, dword [ebx + 0xac]
push edi
call fcn.0043c250
test eax, eax
je 0x4184b9
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
add ecx, 4
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [eax + 4]
jne 0x418350
mov edx, dword [ebx]
mov eax, dword [edx + 0x18c]
mov ecx, ebx
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418475
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
call fcn.00417690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5e0bc4], 0
jne 0x418519
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push 0x5ad5ec
push edx
call fcn.004175b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040d290
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418507
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push 0x10
push 0x5ab178
push ecx
mov ecx, ebx
call fcn.00455405
push 0x3ee
call dword [sym.imp.KERNEL32.dll_ExitProcess]