Function at 0x412a10
Capabilities:
Acquire debug privileges
Check mutex on windows
Extract resource via kernel32 functions
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x44e310]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
push str.GAME_BOX_MAIN_WINDOW
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412b0a
cmp dword [0x475d6c], 0
jne 0x412af3
push 0
push str.GAME_BOX_MAIN_WINDOW
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x412b0a
lea eax, [esp + 0x10]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412ae3
lea eax, [esp + 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x412ad9
mov eax, dword [esp + 0x14]
push 0
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0x4c9
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ChangeWindowMessageFilter
push str.USER32
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x412b32
push 1
push 0x4c9
call eax
push str.ChangeWindowMessageFilter
push str.USER32
call esi
push eax
call edi
test eax, eax
je 0x412b4e
push 1
push 0x52f
call eax
push str.ChangeWindowMessageFilter
push str.USER32
call esi
push eax
call edi
test eax, eax
je 0x412b6a
push 1
push 0x530
call eax
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push eax
call fcn.0042e710
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [0x475d84]
call dword [sym.imp.gbui.dll_DUI_Init]
mov esi, dword [0x475d84]
push 0x447c54
push 0x12d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x412be4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x412c12
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push 0x447c58
push 0x447c60
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
push eax
call fcn.00429b46
add esp, 4
mov esi, eax
push edi
push ebx
push esi
call fcn.0042d820
add esp, 0xc
mov byte [esi + edi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x412be4
push edi
push esi
call dword [sym.imp.gbui.dll_LoadStyleZipMemory]
cmp dword [0x475d88], 0
mov dword [0x475d80], eax
jne 0x412c79
cmp dword [0x475d6c], 0
jne 0x412c79
push 5
call fcn.00414880
test eax, eax
jne 0x412c88
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret
push 0
call fcn.00414880
test eax, eax
je 0x412af3
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x2c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x412cf4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x412cb0
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [0x475d70]
test ecx, ecx
je 0x412cd5
mov edx, dword [ecx]
lea esi, [esp + 0x2c]
push esi
push eax
call dword [edx + 0x48]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x412ce3
lea eax, [esp + 0x2c]
push eax
call edi
lea eax, [esp + 0x2c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x412cb0
push dword [0x475d80]
call dword [sym.imp.gbui.dll_ReleaseStyle]
mov dword [0x475d80], 0
call dword [sym.imp.gbui.dll_DUI_UnLoad]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x1dc]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00429eaf
mov esp, ebp
pop ebp
ret