Function at 0x4d8180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bb72b
mov eax, dword fs:[0]
push eax
sub esp, 0xe74
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xe6c], eax
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0xe60]
mov ebx, dword [ebp + 8]
mov ecx, 0x394
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xe70], ebx
mov byte [ebp - 0x14], 1
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0
push 4
mov dword [ebp - 4], 0
lea esi, [eax + 4]
call fcn.00677616
add esp, 4
mov edi, eax
mov dword [ebp - 0xe70], edi
push esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0xe80], edi
mov esi, dword [ebp - 0xe6c]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4d828d
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4d828d
mov ecx, dword [esi + 0x1c]
lea edx, [ebp - 0xe60]
push edx
lea edx, [ebp - 0xe7c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea ecx, [ebp - 0xe68]
call fcn.0046c760
mov eax, dword [ebp - 0xe78]
mov dword [ebp - 0xe74], eax
test eax, eax
je 0x4d828d
cmp byte [eax + 4], 0
je 0x4d8282
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0xe74]
mov esi, dword [ebp - 0xe6c]
push 8
push eax
call fcn.006779b1
add esp, 8
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4d8363
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0xe7c]
push eax
call fcn.004d99d0
mov ecx, eax
lea eax, [ebp - 0xe68]
cmp eax, ecx
je 0x4d8317
mov eax, dword [ebp - 0xe68]
mov edx, 1
cmp dword [ecx], edx
cmove eax, edx
mov dword [ebp - 0xe68], eax
lea eax, [ecx + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4d8317
lea edx, [ebp - 0xe64]
cmp edx, eax
je 0x4d8317
mov edi, dword [ebp - 0xe64]
mov dword [eax], 0
mov dword [ebp - 0xe64], ecx
test edi, edi
je 0x4d8317
cmp byte [edi + 4], 0
je 0x4d830c
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 8
push edi
call fcn.006779b1
add esp, 8
mov edi, dword [ebp - 0xe78]
test edi, edi
je 0x4d8342
cmp byte [edi + 4], 0
je 0x4d8337
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 8
push edi
call fcn.006779b1
add esp, 8
lea eax, [ebp - 0xe68]
mov ecx, ebx
push eax
call fcn.0046c6f0
mov esi, dword [ebp - 0xe70]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push esi
jmp 0x4d837c
lea eax, [ebp - 0xe68]
mov ecx, ebx
push eax
call fcn.0046c6f0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push edi
call fcn.006779b1
mov edi, dword [ebp - 0xe64]
add esp, 8
test edi, edi
je 0x4d83af
cmp byte [edi + 4], 0
je 0x4d83a4
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 8
push edi
call fcn.006779b1
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret 8