Function at 0x505564
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x505943
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0xf
jne 0x50562b
cmp dword [0x557094], 6
jb 0x5055d5
mov eax, dword [ebp - 4]
mov edx, dword [0x505004]
call fcn.004043a4
test al, al
jne 0x5058ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x505624
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_DrawIcon
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5058ff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_ReleaseDC
ret
mov edx, dword [ebp - 8]
cmp eax, dword [0x557088]
jne 0x505778
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
push 0x505490
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x5058ff
mov edx, dword [ebp - 4]
cmp dword [edx + 0x28], 0
je 0x5056fa
push 0x14
push eax
call sub.user32.dll_GetDlgItem
mov ebx, eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
push ebx
call sub.user32.dll_GetWindowRect
push 2
mov eax, dword [ebp - 4]
add eax, 4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
push 0
call sub.user32.dll_MapWindowPoints
push 0
push ebx
call sub.user32.dll_ShowWindow
cmp dword [0x557094], 6
jb 0x5056c5
mov eax, dword [ebp - 4]
mov edx, dword [0x505004]
call fcn.004043a4
test al, al
jne 0x5056fa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_SetParent
push 0x50
push 0x20
push 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x40]
test ebx, ebx
jle 0x5058ff
mov eax, dword [ebp - 4]
push dword [eax + 0x38]
push 0x505960
lea edx, [ebp - 0x21c]
mov eax, ebx
call fcn.0040dcc0
push dword [ebp - 0x21c]
push 0x505970
lea eax, [ebp - 0x218]
mov edx, 4
call fcn.00406bb0
mov eax, dword [ebp - 0x218]
call fcn.0040669c
push eax
push 0
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SendMessageW
push 0x50554c
push 0x3e8
mov eax, dword [0x55708c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_SetTimer
jmp 0x5058ff
mov edx, dword [ebp - 8]
cmp eax, dword [0x55708c]
jne 0x505841
mov eax, dword [ebp - 4]
dec dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x40]
test ebx, ebx
jg 0x5057ed
mov eax, dword [0x55708c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_KillTimer
mov eax, dword [ebp - 4]
test byte [eax + 0x3c], 0xf
jne 0x5057c9
push 0
push 0
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5058ff
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
add eax, 0x10000
push eax
push 0x111
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5058ff
mov eax, dword [ebp - 4]
push dword [eax + 0x38]
push 0x505960
lea edx, [ebp - 0x224]
mov eax, ebx
call fcn.0040dcc0
push dword [ebp - 0x224]
push 0x505970
lea eax, [ebp - 0x220]
mov edx, 4
call fcn.00406bb0
mov eax, dword [ebp - 0x220]
call fcn.0040669c
push eax
push 0
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5058ff
mov edx, dword [ebp - 8]
cmp eax, dword [0x557090]
jne 0x5058ff
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x3c]
and edi, 0xf00
shr edi, 8
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
mov esi, ebx
jmp 0x505892
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
dec edi
test edi, edi
jle 0x50589a
test ebx, ebx
jne 0x505887
test ebx, ebx
jne 0x5058a2
mov ebx, esi
jmp 0x5058e0
push 0x104
lea eax, [ebp - 0x214]
push eax
push ebx
call sub.user32.dll_GetClassNameW
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x214]
mov ecx, 0x104
call fcn.004067f8
mov eax, dword [ebp - 0x228]
mov edx, 0x505980
call fcn.0040cfbc
test eax, eax
je 0x5058e0
mov ebx, esi
push ebx
call sub.user32.dll_GetDlgCtrlID
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x48], edi
cmp edi, 9
jne 0x5058ff
push esi
call sub.user32.dll_GetDlgCtrlID
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DefWindowProcW
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50594a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406608
ret