Function at 0x402470
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
mov eax, dword [0x429280]
xor eax, esp
mov dword [esp + 0x4c0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 1
mov dword [0x42d66c], eax
call fcn.00410ca9
add esp, 4
mov dword [0x42d678], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x28], 8
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x2c0
call fcn.00410ca9
mov esi, eax
add esp, 4
test esi, esi
je 0x4024ee
push 0x2c0
push 0
push esi
call fcn.00417440
add esp, 0xc
mov ecx, esi
call fcn.004050e0
jmp 0x4024f0
xor eax, eax
push 0x208
mov dword [0x42d670], eax
call fcn.00410ca9
mov esi, dword [0x42d670]
add esp, 4
mov dword [0x42d67c], eax
test esi, esi
je 0x40258c
test eax, eax
je 0x40256d
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
call fcn.00401ec0
mov ecx, edi
call fcn.004020d0
push str.4997GAME_BOX_MAIN_WINDOW
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4025bc
push 0x40
push 0x425a38
push 0x425a40
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x402563
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x42d670]
test esi, esi
je 0x402587
mov ecx, esi
call fcn.00405300
push esi
call fcn.00410d1f
add esp, 4
mov dword [0x42d670], 0
mov eax, dword [0x42d67c]
test eax, eax
je 0x4025a3
push eax
call fcn.00410d1f
add esp, 4
mov dword [0x42d67c], 0
mov ecx, dword [esp + 0x4cc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410bce
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x42d670]
cmp dword [eax + 0x38], 0
je 0x402695
push 0x208
call fcn.00410ca9
mov esi, eax
add esp, 4
test esi, esi
je 0x4025f0
push 0x104
push 0
push esi
call fcn.00417440
add esp, 0xc
jmp 0x4025f2
xor esi, esi
mov ecx, esi
call fcn.00404880
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c8], ax
lea eax, [esp + 0x2ca]
push eax
call fcn.00417440
add esp, 0xc
call fcn.00405600
push eax
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call fcn.004057a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x2c4]
push eax
call esi
push 0x425a78
lea eax, [esp + 0x2c4]
push eax
call esi
push 0x425a7c
lea eax, [esp + 0x2c4]
push eax
call esi
lea eax, [esp + 0x2c0]
push eax
push str.smallbox
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.004072d0
sub esp, 8
lea eax, [esp + 0x2c8]
push eax
push ecx
call fcn.00408760
jmp 0x4025a3
push 0x1c4
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00417440
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00405f20
push dword [ebp + 0x14]
lea ecx, [esp + 0x34]
call fcn.00406500
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0xc]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x40279b
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
nop
cmp dword [esp + 0x10], 0x100
jne 0x402770
mov eax, dword [esp + 0x14]
cmp eax, 9
jne 0x40270e
mov ecx, dword [esp + 0xc]
call fcn.00402030
cmp dword [esp + 0x10], 0x100
jne 0x402770
mov eax, dword [esp + 0x14]
cmp eax, 0xd
jne 0x402770
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x200], ax
lea eax, [esp + 0x202]
push eax
call fcn.00417440
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x402770
push 0x64
lea ecx, [esp + 0x1fc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.Button
lea eax, [esp + 0x1fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x402770
push eax
push eax
push 0xf5
push dword [esp + 0x18]
call edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
jne 0x4026e0
test esi, esi
je 0x4027a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x42d670]
test esi, esi
je 0x4027ca
mov ecx, esi
call fcn.00405300
push esi
call fcn.00410d1f
add esp, 4
mov dword [0x42d670], 0
mov eax, dword [0x42d67c]
test eax, eax
je 0x4027e6
push eax
call fcn.00410d1f
add esp, 4
mov dword [0x42d67c], 0
lea ecx, [esp + 0x30]
call fcn.004061d0
jmp 0x4025a3