Function at 0x4240d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50899c
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x6b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
xor edi, edi
cmp eax, edi
je 0x4242c3
mov esi, dword [eax + 8]
cmp esi, edi
je 0x4242c3
push 0x206
lea ecx, [esp + 0x4aa]
xor eax, eax
push edi
push ecx
mov word [esp + 0x4b0], ax
call fcn.004cd250
add esp, 0xc
push 0x103
add esi, 0x240
push esi
lea edx, [esp + 0x4ac]
push 0x104
push edx
call fcn.004c873f
xor eax, eax
mov word [esp + 0x6ba], ax
add esp, 0x10
mov eax, 0x51cf28
lea ecx, [esp + 0x294]
call fcn.0043e460
mov dword [esp + 0x6c0], edi
cmp byte [esp + 0x298], 0
je 0x42426f
push 0x51cf70
push str.CherryWindowClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp byte [0x53da5b], 0
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
je 0x4241d8
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xce33
push esi
call edi
test esi, esi
je 0x42442b
cmp dword [esp + 0x14], ebx
je 0x42442b
push 0
push 0
push 0xce31
push esi
call edi
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0043b460
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
lea edx, [esp + 0x4a4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, edx
mov dword [esp + 0x24], edx
lea edx, [eax + 2]
jmp 0x424240
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424240
lea ecx, [esp + 0x1c]
push ecx
sub eax, edx
push esi
sar eax, 1
push 0x4a
lea eax, [eax + eax + 2]
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 1
call edi
jmp 0x42442b
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x16c]
call fcn.00435900
mov byte [esp + 0x6c0], 2
lea esi, [esp + 0x16c]
mov byte [esp + 0x13], 0
call fcn.00402e70
test al, al
jne 0x4242ca
mov ecx, esi
call fcn.00438c80
lea ecx, [esp + 0x14]
call fcn.00437e60
mov eax, dword [esp + 0x294]
cmp eax, edi
je 0x4242c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x42443f
push edi
push edi
push edi
push edi
push str.PicFace.dll
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x5c]
call fcn.00435c10
mov byte [esp + 0x6c0], 3
cmp byte [esp + 0x160], 0
lea eax, [esp + 0x50]
jne 0x4242fe
mov eax, dword [esp + 0x4c]
lea esi, [eax + 4]
lea edi, [esp + 0x13]
call fcn.00402850
test al, al
jne 0x424345
lea ecx, [esp + 0x44]
call fcn.00438c80
lea ecx, [esp + 0x16c]
call fcn.00438c80
lea ecx, [esp + 0x14]
call fcn.00437e60
mov eax, dword [esp + 0x294]
test eax, eax
je 0x4242c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x42443f
lea ecx, [esp + 0x44]
call fcn.00435ed0
cmp byte [esp + 0x13], 0
je 0x42435e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x424363
call fcn.00434c40
test eax, eax
je 0x42430e
push str.ShowAppboxPicfaceWnd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x42440d
call fcn.0041cf20
mov eax, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x4a8]
push ecx
push eax
call esi
add esp, 0xc
test al, al
je 0x42440d
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
xor eax, eax
push eax
push eax
push eax
lea edx, [esp + 0x34]
push edx
mov byte [0x53da5b], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call esi
test eax, eax
je 0x424406
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp eax, 0xffffffff
je 0x424406
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
jne 0x4243e2
mov byte [0x53da5b], 0
lea ecx, [esp + 0x44]
call fcn.00438c80
lea ecx, [esp + 0x16c]
call fcn.00438c80
lea ecx, [esp + 0x14]
call fcn.00437e60
mov eax, dword [esp + 0x294]
test eax, eax
je 0x42443d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x6b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6a0]
xor ecx, esp
call fcn.004c60f4
mov esp, ebp
pop ebp
ret 4