Function at 0x41d4e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505b0c
mov eax, dword fs:[0]
push eax
sub esp, 0x6a8
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x6a0], eax
push ebx
push esi
push edi
mov eax, dword [0x5355a0]
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 ebx, ebx
cmp eax, ebx
je 0x41d6f5
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x41d6f5
push 0x206
lea ecx, [esp + 0x4aa]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x4b0], ax
call fcn.004cab10
add esp, 0xc
push 0x103
add esi, 0x240
push esi
lea edx, [esp + 0x4ac]
push 0x104
push edx
call fcn.004c5747
add esp, 0x10
mov eax, 0x5193a8
lea ecx, [esp + 0x294]
call fcn.00437410
mov dword [esp + 0x6c0], ebx
cmp byte [esp + 0x298], bl
je 0x41d680
push 0x5193f0
push str.CherryWindowClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp byte [0x53be13], bl
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
je 0x41d5dc
lea eax, [esp + 0x18]
push eax
push 0
push 0xce33
push esi
call ebx
test esi, esi
je 0x41d85a
cmp dword [esp + 0x18], edi
je 0x41d85a
cmp word [esp + 0x4be], 0x20
lea edi, [esp + 0x4be]
jne 0x41d607
lea edi, [esp + 0x4c0]
push 0
push 0
push 0xce31
push esi
call ebx
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00437390
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
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, edi
mov dword [esp + 0x24], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d652
sub eax, edx
lea edx, [esp + 0x1c]
push edx
push esi
sar eax, 1
push 0x4a
lea ecx, [eax + eax]
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 1
call ebx
jmp 0x41d85a
cmp word [esp + 0x4be], 0x20
lea eax, [esp + 0x4be]
mov dword [esp + 0x18], eax
jne 0x41d6a1
lea ecx, [esp + 0x4c0]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x16c]
call fcn.00431a60
mov byte [esp + 0x6c0], 2
lea esi, [esp + 0x16c]
mov byte [esp + 0x17], 0
call fcn.00402e60
test al, al
jne 0x41d6fc
mov ecx, esi
call fcn.00434b70
lea ecx, [esp + 0x1c]
call fcn.00433d50
mov eax, dword [esp + 0x294]
cmp eax, ebx
je 0x41d6f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41d86e
push ebx
push ebx
push ebx
push ebx
push str.PicFace.dll
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x5c]
call fcn.00431d70
mov byte [esp + 0x6c0], 3
cmp byte [esp + 0x160], 0
lea eax, [esp + 0x50]
jne 0x41d730
mov eax, dword [esp + 0x4c]
lea esi, [eax + 4]
lea edi, [esp + 0x17]
call fcn.00402840
test al, al
jne 0x41d777
lea ecx, [esp + 0x44]
call fcn.00434b70
lea ecx, [esp + 0x16c]
call fcn.00434b70
lea ecx, [esp + 0x1c]
call fcn.00433d50
mov eax, dword [esp + 0x294]
test eax, eax
je 0x41d6f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41d86e
lea ecx, [esp + 0x44]
call fcn.00432030
cmp byte [esp + 0x17], 0
je 0x41d790
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41d795
call fcn.00430d80
test eax, eax
je 0x41d740
push str.ShowAppboxPicfaceWnd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41d83c
call fcn.00419320
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
push 0
push ecx
push eax
call esi
add esp, 0xc
test al, al
je 0x41d83c
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 [0x53be13], 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 0x41d835
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp eax, 0xffffffff
je 0x41d835
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 0x41d811
mov byte [0x53be13], 0
lea ecx, [esp + 0x44]
call fcn.00434b70
lea ecx, [esp + 0x16c]
call fcn.00434b70
lea ecx, [esp + 0x1c]
call fcn.00433d50
mov eax, dword [esp + 0x294]
test eax, eax
je 0x41d86c
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.004c31a1
mov esp, ebp
pop ebp
ret 4