Function at 0x406ddb
Capabilities:
Capture screenshot
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4206f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 9], 0
cmp ebx, dword [0x421d40]
jne 0x406e0e
xor ebx, ebx
mov byte [ebp - 9], 1
inc ebx
mov eax, 0x405
cmp si, ax
jne 0x406e90
push dword [0x421d2c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406e90
cmp dword [0x421d30], 1
jne 0x406e90
and dword [0x421d30], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x5c], 0x10
mov eax, dword [0x421d48]
mov dword [ebp - 0x20], eax
jb 0x406e55
mov eax, dword [edi + 0x48]
jmp 0x406e58
lea eax, [edi + 0x48]
push 0
push 0x405f97
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x1914
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call sub.hccutils.DLL_FindResources
pop ecx
pop ecx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x421d2c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 0x7e
ja 0x4071df
je 0x4071d3
mov eax, ebx
dec eax
je 0x4071b9
dec eax
je 0x407163
sub eax, 4
je 0x407143
sub eax, 0x25
je 0x406f99
dec eax
jne 0x407203
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
push 0x2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0040af80
lea ebx, [edi + 0x14]
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x64], 0x28
test eax, eax
je 0x406efe
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
push ebx
push 0xd
push dword [edi + 0x40]
call fcn.004012cc
mov eax, dword [ebx]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x406f1c
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
jmp 0x406f81
push ebx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x5c]
push ebx
push str.Progman
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x406f6c
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x406f6c
push 0x36
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
inc ecx
sub ecx, eax
mov eax, dword [ebp - 0x60]
lea eax, [eax + ecx*2]
mov dword [esi + 0xc], eax
jmp 0x406f81
push 0x36
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x60]
add eax, eax
sub ecx, eax
sub ecx, 6
mov dword [esi + 0xc], ecx
push dword [ebp - 8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebp - 8], 1
jmp 0x407298
cmp dword [edi + 0x14], 0
je 0x407298
push dword [esi + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call ebx
push dword [esi + 0x18]
mov dword [ebp - 0x18], eax
call ebx
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
mov dword [ebp - 0x10], ecx
push eax
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [edi + 0x14]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call edi
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push dword [ebp - 8]
call edi
push dword [esi + 0x18]
mov dword [ebp - 0x30], eax
call ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
call edi
push 0xffffff
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
push eax
push dword [ebp - 8]
call ebx
push 0xffffff
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push dword [esi + 0x18]
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xcc0020
push dword [esi + 0x20]
mov dword [ebp - 0x38], eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x14]
call ebx
push 0x660046
xor eax, eax
push eax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
push eax
push dword [ebp - 0x14]
call ebx
push 0x8800c6
xor eax, eax
push eax
push eax
push dword [ebp - 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
push eax
push dword [ebp - 0x14]
call ebx
push 0x660046
xor eax, eax
push eax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push eax
push eax
push dword [ebp - 0x14]
call ebx
push 0xcc0020
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
call ebx
push dword [ebp - 0x28]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x38]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x30]
push dword [ebp - 8]
call edi
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x20]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x34]
call esi
jmp 0x406f8d
cmp dword [edi + 0xc], 0
je 0x407298
cmp byte [edi + 0x38], 0
jne 0x407298
mov ecx, edi
call fcn.004062bb
jmp 0x407298
cmp dword [edi + 0xc], 0
je 0x407170
mov ecx, edi
call fcn.004062bb
mov eax, dword [edi + 8]
test eax, eax
je 0x407181
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi + 8], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x407193
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [edi + 0x14], 0
mov ecx, edi
call fcn.00406d5d
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
push dword [ebp + 0x10]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 8], eax
jmp 0x407298
cmp byte [ebp - 9], 0
jne 0x4071c7
push esi
push dword [ebp + 0x10]
push 1
jmp 0x4071a8
mov ecx, edi
call fcn.00406c27
jmp 0x407298
mov dword [0x421d38], 1
jmp 0x407214
cmp ebx, 0x111
je 0x40727b
cmp ebx, 0x40a
je 0x40724f
cmp ebx, 0x1989
je 0x407248
cmp ebx, 0x807c
je 0x40720a
push esi
push dword [ebp + 0x10]
push ebx
jmp 0x4071a8
mov dword [0x421d34], 1
mov eax, dword [0x421d3c]
test eax, eax
je 0x40722d
push eax
push 0
call dword [sym.imp.USER32.dll_KillTimer]
and dword [0x421d3c], 0
push 0x406d6c
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x421d3c], eax
jmp 0x407298
call fcn.00407c05
jmp 0x407298
cmp esi, 0x201
jl 0x407298
cmp esi, 0x209
jg 0x407298
cmp dword [ebp + 0x10], 0x64
jne 0x407298
cmp byte [edi + 0x38], 0
jne 0x407298
push 0x4062ed
mov byte [edi + 0x38], 1
push 0x12c
jmp 0x40728d
mov eax, dword [ebp + 0x10]
push 0x4068b0
mov dword [0x421d1c], eax
push 0x12d
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040affa
leave
ret 0x10