Function at 0x402470
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4dc
mov eax, dword [0x425280]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 1
mov dword [0x427364], edi
call fcn.0040fe29
add esp, 4
mov dword [0x427370], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 0xff
mov dword [esp + 0x40], 8
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0xb8
call fcn.0040fe29
mov esi, eax
add esp, 4
test esi, esi
je 0x4024ef
push 0xb8
push 0
push esi
call fcn.00413c60
add esp, 0xc
mov ecx, esi
call fcn.00404460
jmp 0x4024f1
xor eax, eax
push 0x208
mov dword [0x427368], eax
call fcn.0040fe29
mov esi, dword [0x427368]
add esp, 4
mov dword [0x427374], eax
test esi, esi
je 0x4025a5
test eax, eax
je 0x402586
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [esp + 0x10], esi
call fcn.00401ec0
mov ecx, ebx
call fcn.004020d0
mov ecx, dword [0x427368]
cmp dword [ecx + 0x3c], 0
jne 0x4025db
push str.GAME_BOX_MAIN_WINDOW
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4025d5
push 0x40
push 0x421a38
push 0x421a40
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x40257c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x427368]
test esi, esi
je 0x4025a0
mov ecx, esi
call fcn.00404660
push esi
call fcn.0040fe9f
add esp, 4
mov dword [0x427368], 0
mov eax, dword [0x427374]
test eax, eax
je 0x4025bc
push eax
call fcn.0040fe9f
add esp, 4
mov dword [0x427374], 0
mov ecx, dword [esp + 0x4e4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040fd4e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x427368]
cmp dword [ecx + 0x38], 0
je 0x4026b3
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0x34], xmm0
lea ecx, [esp + 0x34]
push 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 0
call fcn.00403b90
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2e0], ax
lea eax, [esp + 0x2e2]
push eax
call fcn.00413c60
add esp, 0xc
call fcn.00404850
push eax
lea eax, [esp + 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004049e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x2dc]
push eax
call esi
push 0x421a78
lea eax, [esp + 0x2dc]
push eax
call esi
push 0x421a7c
lea eax, [esp + 0x2dc]
push eax
call esi
lea eax, [esp + 0x2d8]
push eax
push str.GMBoxInfo
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00406530
sub esp, 8
lea eax, [esp + 0x2e0]
push eax
push ecx
call fcn.00407930
jmp 0x4025bc
push 0x1c4
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00413c60
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00405180
push dword [ebp + 0x14]
lea ecx, [esp + 0x4c]
call fcn.00405760
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
je 0x4027e7
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esp + 0x14]
mov edi, edi
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4027ce
cmp dword [esp + 0x1c], 0x100
jne 0x4027b8
mov eax, dword [esp + 0x20]
cmp eax, 9
jne 0x402756
mov ecx, dword [esp + 0x18]
call fcn.00402030
cmp dword [esp + 0x1c], 0x100
jne 0x4027b8
mov eax, dword [esp + 0x20]
cmp eax, 0xd
jne 0x4027b8
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x218], ax
lea eax, [esp + 0x21a]
push eax
call fcn.00413c60
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x4027b8
push 0x64
lea ecx, [esp + 0x214]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.Button
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4027b8
push eax
push eax
push 0xf5
push dword [esp + 0x24]
call ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
jne 0x402710
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4027f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x427368]
test esi, esi
je 0x402816
mov ecx, esi
call fcn.00404660
push esi
call fcn.0040fe9f
add esp, 4
mov dword [0x427368], 0
mov eax, dword [0x427374]
test eax, eax
je 0x402832
push eax
call fcn.0040fe9f
add esp, 4
mov dword [0x427374], 0
lea ecx, [esp + 0x48]
call fcn.00405430
jmp 0x4025bc