Function at 0x4124a0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1158
call fcn.005a0b40
mov eax, dword [0x6fb05c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1158], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1158]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp - 0x1158]
call fcn.00412350
movzx eax, al
test eax, eax
jne 0x41250d
push 0
push 0x5cacc2
push str.getImpersonationToken
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x412807
mov dword [ebp - 8], 0
push 0x104
mov ecx, dword [ebp - 0x1158]
add ecx, 0x108
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4125c4
push 0x5c
mov edx, dword [ebp - 0x1158]
add edx, 0x108
push edx
call fcn.005a0a80
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x412585
mov eax, dword [ebp - 0x120]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1158]
add ecx, 0x20c
push ecx
call fcn.0059f660
add esp, 8
mov edx, dword [ebp - 0x120]
mov byte [edx + 1], 0
mov eax, dword [ebp - 0x1158]
add eax, 0x108
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.0059f660
add esp, 8
push 0x5cad40
lea edx, [ebp - 0x118]
push edx
call fcn.0059f670
add esp, 8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4125d8
push str.DBGHELP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
je 0x4127c7
push str.MiniDumpWriteDump
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4127be
mov ecx, dword [ebp - 0x1158]
call fcn.00412300
mov edx, dword [ebp - 0x1158]
add edx, 4
push edx
push str.There_was_an_unexpected_error:_n_nWould_you_like_to_create_a_mini_dump_file__n_n_s
lea eax, [ebp - 0x1128]
push eax
call fcn.0059f1bf
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov ecx, dword [ebp - 0x1158]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x112c], eax
cmp dword [ebp - 0x112c], 0xffffffff
je 0x41278e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1140], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x113c], edx
mov dword [ebp - 0x1138], 0
lea eax, [ebp - 0x1154]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push str.SeDebugPrivilege
mov ecx, dword [ebp - 0x1158]
call fcn.004123b0
mov dword [ebp - 0x1130], eax
push 0
push str.Error_
push str.The_game_encountered_a_problem_and_exited_abnormally__Creating_dmp
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1134], 0x227
mov edx, dword [0x6fcd14]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
lea eax, [ebp - 0x1140]
push eax
mov ecx, dword [ebp - 0x1134]
push ecx
mov edx, dword [ebp - 0x112c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x124]
mov dword [ebp - 0x1144], eax
mov eax, dword [0x6fcd14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1130], 0
je 0x412738
lea ecx, [ebp - 0x1154]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov ecx, dword [ebp - 0x1158]
call fcn.00412450
cmp dword [ebp - 0x1144], 0
je 0x412751
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
jmp 0x41277f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x1158]
add eax, 4
push eax
push str.Failed_to_save_the_mini_dump_file_to__s__error__d_
lea ecx, [ebp - 0x1128]
push ecx
call fcn.0059f1bf
add esp, 0x10
lea edx, [ebp - 0x1128]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x112c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4127bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1158]
add ecx, 4
push ecx
push str.Failed_to_create_the_mini_dump_file__s__error__d_
lea edx, [ebp - 0x1128]
push edx
call fcn.0059f1bf
add esp, 0x10
lea eax, [ebp - 0x1128]
mov dword [ebp - 0xc], eax
jmp 0x4127c5
mov dword [ebp - 0xc], str.Call_to_GetProcAddress_failed_to_find_MiniDumpWriteDump._The_DBGHELP.DLL_is_possibly_outdated.
jmp 0x4127ce
mov dword [ebp - 0xc], str.Call_to_LoadLibrary_failed_to_find_DBGHELP.DLL.
cmp dword [ebp - 0xc], 0
je 0x4127f5
mov ecx, dword [ebp - 0x1158]
movzx edx, byte [ecx + 0x310]
test edx, edx
je 0x4127f5
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059eb13
mov esp, ebp
pop ebp
ret 4