Function at 0x405050
Capabilities:
Access peb ldr_data
Acquire debug privileges
Get ntdll base address
Read .ini file
Resume thread
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x43ebfb
mov eax, dword fs:[0]
push eax
sub esp, 0xa84
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0xa98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xaac]
mov edx, dword [0x44e98c]
mov ebp, dword [esp + 0xaa8]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, 0x44e98c
mov dword [esp + 0x20], ebp
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
xor esi, esi
push 0x206
lea edx, [esp + 0x68a]
xor ecx, ecx
push esi
mov dword [esp + 0xaa8], esi
push edx
mov word [esp + 0x690], cx
call fcn.0042aa60
add esp, 0xc
push 0x206
lea ecx, [esp + 0x27a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x280], ax
call fcn.0042aa60
add esp, 0xc
push 0x206
lea eax, [esp + 0x892]
xor edx, edx
push esi
push eax
mov word [esp + 0x898], dx
call fcn.0042aa60
xor eax, eax
xor ecx, ecx
mov word [esp + 0x50], cx
mov ecx, dword [ebp + 0x388]
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov word [esp + 0x76], ax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], esi
call eax
test eax, eax
jne 0x4051b0
push 0x30
push 0x4434a8
push str._OgvU_0R8n
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
jmp 0x405648
lea ebx, [ebp + 0x398]
push ebx
push esi
push str.gamecount
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
mov esi, 1
cmp eax, esi
mov dword [esp + 0x24], eax
jle 0x4052d6
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push str.name_d
lea edi, [esp + 0x20]
call fcn.004026d0
mov edi, dword [esp + 0x20]
add esp, 8
push ebx
push 0x208
lea ecx, [esp + 0x68c]
push ecx
push 0
push edi
push str.game
call ebp
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405231
inc esi
cmp esi, dword [esp + 0x24]
jl 0x4051e0
jmp 0x4052d2
push esi
push str.gamepath_d
lea edi, [esp + 0x20]
call fcn.004026d0
mov edx, dword [esp + 0x20]
add esp, 8
push ebx
push 0x208
lea ecx, [esp + 0x27c]
push ecx
push 0
push edx
push str.game
call ebp
push esi
push str.gameparam_d
call fcn.004026d0
mov ecx, dword [esp + 0x20]
add esp, 8
push ebx
push 0x208
lea eax, [esp + 0x894]
push eax
push 0
push ecx
push str.game
call ebp
push esi
push str.gameruntype_d
call fcn.004026d0
mov edx, dword [esp + 0x20]
add esp, 8
push ebx
push 0
push edx
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push str.hookgame_d
mov dword [esp + 0x24], eax
call fcn.004026d0
mov edi, dword [esp + 0x20]
add esp, 8
push ebx
push 0x28
lea eax, [esp + 0x4c]
push eax
push 0
push edi
push str.game
call ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x274]
push ecx
call ebx
test eax, eax
jne 0x40531b
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405311
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 4
jmp 0x405648
lea ecx, [esp + 0x274]
push ecx
call fcn.00405830
test eax, eax
jne 0x40535d
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
jmp 0x405648
lea ecx, [esp + 0x274]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00405680
test eax, eax
jne 0x4053b6
push 0x30
push 0x44355c
push 0x443570
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x405648
mov eax, dword [ebp + 0x5a4]
lea esi, [ebp + 0x5a0]
test eax, eax
je 0x405448
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405448
cmp eax, 0x102
jne 0x4053e9
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x34
push 0x4435d8
push 0x4435e8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x405433
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x405648
mov eax, dword [esi + 4]
test eax, eax
je 0x405443
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.00424460
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x76]
push edx
mov word [esp + 0x78], cx
call fcn.0042aa60
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x486]
push ecx
mov word [esp + 0x488], ax
call fcn.0042aa60
add esp, 0xc
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x6c]
push ecx
call ebx
test eax, eax
jle 0x4054ba
mov edx, 0x5c
cmp dx, word [esp + eax*2 + 0x6c]
je 0x4054b3
dec eax
test eax, eax
jg 0x4054a0
jmp 0x4054ba
xor ecx, ecx
mov word [esp + eax*2 + 0x6c], cx
lea edx, [esp + 0x88c]
push edx
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x484]
push str.__s___s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405553
lea eax, [esp + 0x24]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0x10
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], 1
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x47c]
lea edx, [esp + 0x274]
jne 0x405570
push 4
jmp 0x405572
push 0
push eax
push ecx
push edx
call fcn.004243e0
push 0x104
lea eax, [esp + 0x70]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jle 0x4055aa
mov ecx, 0x5c
cmp cx, word [esp + eax*2 + 0x6c]
je 0x4055a3
dec eax
test eax, eax
jg 0x405590
jmp 0x4055aa
xor edx, edx
mov word [esp + eax*2 + 0x6e], dx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x6c]
push edx
mov ebx, esi
call fcn.00424530
test eax, eax
jne 0x40560b
push 0x10
push 0x44362c
push str.DLL_WIN7
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 6
jmp 0x405648
cmp dword [esp + 0x1c], 1
jne 0x40561f
mov ecx, dword [ebp + 0x5ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [edi - 0x10]
mov dword [esp + 0xaa0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405646
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xa98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.0042825b
add esp, 0xa90
ret 8