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.0040fc89
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.0040fc89
mov esi, eax
add esp, 4
test esi, esi
je 0x4024ef
push 0xb8
push 0
push esi
call fcn.00413a40
add esp, 0xc
mov ecx, esi
call fcn.00404400
jmp 0x4024f1
xor eax, eax
push 0x208
mov dword [0x427368], eax
call fcn.0040fc89
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 0x421a00
push 0x421a08
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.00404600
push esi
call fcn.0040fcff
add esp, 4
mov dword [0x427368], 0
mov eax, dword [0x427374]
test eax, eax
je 0x4025bc
push eax
call fcn.0040fcff
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.0040fbae
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x427368]
cmp dword [ecx + 0x38], 0
je 0x4026c5
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.00403b30
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2e0], ax
lea eax, [esp + 0x2e2]
push eax
call fcn.00413a40
add esp, 0xc
call fcn.004047f0
push eax
lea eax, [esp + 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00404990
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x2dc]
push eax
call esi
push 0x421a40
lea eax, [esp + 0x2dc]
push eax
call esi
push 0x421a44
lea eax, [esp + 0x2dc]
push eax
call esi
mov eax, dword [0x427368]
mov edx, str.WYBoxInfo
mov ecx, str.SmallBoxInfo
cmp dword [eax + 0x38], 0
lea eax, [esp + 0x2d8]
push eax
cmove ecx, edx
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00406500
sub esp, 8
lea eax, [esp + 0x2e0]
push eax
push ecx
call fcn.00407900
jmp 0x4025bc
push 0x1c4
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00413a40
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00405140
push dword [ebp + 0x14]
lea ecx, [esp + 0x4c]
call fcn.00405720
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 0x4027f7
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4027de
cmp dword [esp + 0x1c], 0x100
jne 0x4027c8
mov eax, dword [esp + 0x20]
cmp eax, 9
jne 0x402766
mov ecx, dword [esp + 0x18]
call fcn.00402030
cmp dword [esp + 0x1c], 0x100
jne 0x4027c8
mov eax, dword [esp + 0x20]
cmp eax, 0xd
jne 0x4027c8
xor eax, eax
push 0xc6
push eax
mov word [esp + 0x218], ax
lea eax, [esp + 0x21a]
push eax
call fcn.00413a40
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x4027c8
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 0x4027c8
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 0x402720
mov esi, dword [esp + 0x10]
test esi, esi
je 0x402802
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [0x427368]
test esi, esi
je 0x402826
mov ecx, esi
call fcn.00404600
push esi
call fcn.0040fcff
add esp, 4
mov dword [0x427368], 0
mov eax, dword [0x427374]
test eax, eax
je 0x402842
push eax
call fcn.0040fcff
add esp, 4
mov dword [0x427374], 0
lea ecx, [esp + 0x48]
call fcn.004053f0
jmp 0x4025bc