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.00410d79
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.00410d79
mov esi, eax
add esp, 4
test esi, esi
je 0x4024ee
push 0x2c0
push 0
push esi
call fcn.00417510
add esp, 0xc
mov ecx, esi
call fcn.00405180
jmp 0x4024f0
xor eax, eax
push 0x208
mov dword [0x42d670], eax
call fcn.00410d79
mov esi, dword [0x42d670]
add esp, 4
mov dword [0x42d67c], eax
test esi, esi
je 0x402578
test eax, eax
je 0x402559
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 0x4025a8
test esi, esi
je 0x40254f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x42d670]
test esi, esi
je 0x402573
mov ecx, esi
call fcn.004053a0
push esi
call fcn.00410def
add esp, 4
mov dword [0x42d670], 0
mov eax, dword [0x42d67c]
test eax, eax
je 0x40258f
push eax
call fcn.00410def
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.00410c9e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x42d670]
cmp dword [eax + 0x38], 0
je 0x402681
push 0x208
call fcn.00410d79
mov esi, eax
add esp, 4
test esi, esi
je 0x4025dc
push 0x104
push 0
push esi
call fcn.00417510
add esp, 0xc
jmp 0x4025de
xor esi, esi
mov ecx, esi
call fcn.00404920
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c8], ax
lea eax, [esp + 0x2ca]
push eax
call fcn.00417510
add esp, 0xc
call fcn.004056a0
push eax
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call fcn.00405840
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x2c4]
push eax
call esi
push 0x425a38
lea eax, [esp + 0x2c4]
push eax
call esi
push 0x425a3c
lea eax, [esp + 0x2c4]
push eax
call esi
lea eax, [esp + 0x2c0]
push eax
push str.smallbox
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.004073a0
sub esp, 8
lea eax, [esp + 0x2c8]
push eax
push ecx
call fcn.00408830
jmp 0x40258f
push 0x1c4
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00417510
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00405fc0
push dword [ebp + 0x14]
lea ecx, [esp + 0x34]
call fcn.004065a0
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 0x40278b
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4026d0
cmp dword [esp + 0x10], 0x100
jne 0x402760
mov eax, dword [esp + 0x14]
cmp eax, 9
jne 0x4026fe
mov ecx, dword [esp + 0xc]
call fcn.00402030
cmp dword [esp + 0x10], 0x100
jne 0x402760
mov eax, dword [esp + 0x14]
cmp eax, 0xd
jne 0x402760
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x200], ax
lea eax, [esp + 0x202]
push eax
call fcn.00417510
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x402760
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 0x402760
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 0x4026d0
test esi, esi
je 0x402796
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x42d670]
test esi, esi
je 0x4027ba
mov ecx, esi
call fcn.004053a0
push esi
call fcn.00410def
add esp, 4
mov dword [0x42d670], 0
mov eax, dword [0x42d67c]
test eax, eax
je 0x4027d6
push eax
call fcn.00410def
add esp, 4
mov dword [0x42d67c], 0
lea ecx, [esp + 0x30]
call fcn.00406270
jmp 0x40258f