Function at 0x412310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0044f63a
mov ecx, dword [eax + 4]
call fcn.0044725d
mov dword [esp + 0x30], 0
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41236e
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 1
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41239d
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 2
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x94]
push ecx
push edx
call fcn.0042d1b0
mov esi, eax
mov ebx, dword [esi + 0xc]
cmp ebx, dword [esi + 0x10]
jbe 0x4123d1
call fcn.00462656
mov esi, dword [esi]
test esi, esi
jne 0x412418
call fcn.00462656
cmp ebx, dword [esi + 0x10]
jb 0x4123e6
call fcn.00462656
mov ebp, dword [ebx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x98]
call fcn.0044c5f3
cmp dword [0x4a95e8], 0
jne 0x412423
push 0x60
call fcn.00443d07
add esp, 4
test eax, eax
je 0x41241c
mov esi, eax
call fcn.00437cc0
jmp 0x41241e
mov esi, dword [esi]
jmp 0x4123dc
xor eax, eax
mov dword [0x4a95e8], eax
mov eax, 0x5c
lea ebx, [esp + 0x1c]
call fcn.004117a0
push 1
push 0x49151c
mov ecx, ebx
call fcn.0040e2c0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401fe0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov edx, dword [edi + 0x94]
push ebp
push edx
call fcn.0042ec40
test eax, eax
jne 0x4124e2
cmp dword [0x4a9948], eax
jne 0x4124d7
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push 0x4905e0
push ecx
call fcn.00410e20
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call fcn.00407570
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4124c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0x10
push 0x48e338
push ecx
mov ecx, edi
call fcn.0044a077
push 0x3ee
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [edi]
mov eax, dword [edx + 0x168]
mov ecx, edi
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412513
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x30], 0xffffffff
call fcn.00410f60
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret