Function at 0x402470
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
mov eax, dword [section..data]
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 [0x42c688], eax
call fcn.0040e794
add esp, 4
mov dword [0x42c694], 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.0040e794
mov esi, eax
add esp, 4
test esi, esi
je 0x4024ee
push 0x2c0
push 0
push esi
call fcn.00413c30
add esp, 0xc
mov ecx, esi
call fcn.00405080
jmp 0x4024f0
xor eax, eax
push 0x208
mov dword [0x42c68c], eax
call fcn.0040e794
mov esi, dword [0x42c68c]
add esp, 4
mov dword [0x42c698], 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.4177GAME_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 [0x42c68c]
test esi, esi
je 0x402573
mov ecx, esi
call fcn.004052a0
push esi
call fcn.0040e80a
add esp, 4
mov dword [0x42c68c], 0
mov eax, dword [0x42c698]
test eax, eax
je 0x40258f
push eax
call fcn.0040e80a
add esp, 4
mov dword [0x42c698], 0
mov ecx, dword [esp + 0x4cc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e6b9
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x42c68c]
cmp dword [eax + 0x38], 0
je 0x402681
push 0x208
call fcn.0040e794
mov esi, eax
add esp, 4
test esi, esi
je 0x4025dc
push 0x104
push 0
push esi
call fcn.00413c30
add esp, 0xc
jmp 0x4025de
xor esi, esi
mov ecx, esi
call fcn.00404820
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c8], ax
lea eax, [esp + 0x2ca]
push eax
call fcn.00413c30
add esp, 0xc
call fcn.004055a0
push eax
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call fcn.00405740
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x2c4]
push eax
call esi
push 0x423a68
lea eax, [esp + 0x2c4]
push eax
call esi
push 0x423a6c
lea eax, [esp + 0x2c4]
push eax
call esi
lea eax, [esp + 0x2c0]
push eax
push str.Smalbox
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.004072a0
sub esp, 8
lea eax, [esp + 0x2c8]
push eax
push ecx
call fcn.00408760
jmp 0x40258f
push 0x1c4
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00413c30
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00405ec0
push dword [ebp + 0x14]
lea ecx, [esp + 0x34]
call fcn.004064a0
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.00413c30
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 [0x42c68c]
test esi, esi
je 0x4027ba
mov ecx, esi
call fcn.004052a0
push esi
call fcn.0040e80a
add esp, 4
mov dword [0x42c68c], 0
mov eax, dword [0x42c698]
test eax, eax
je 0x4027d6
push eax
call fcn.0040e80a
add esp, 4
mov dword [0x42c698], 0
lea ecx, [esp + 0x30]
call fcn.00406170
jmp 0x40258f