Function at 0x406d8b
Capabilities:
Capture screenshot
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4216f0]
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 [0x422d40]
jne 0x406dbe
xor ebx, ebx
mov byte [ebp - 9], 1
inc ebx
mov eax, 0x405
cmp si, ax
jne 0x406e40
push dword [0x422d2c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406e40
cmp dword [0x422d30], 1
jne 0x406e40
and dword [0x422d30], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x5c], 0x10
mov eax, dword [0x422d48]
mov dword [ebp - 0x20], eax
jb 0x406e05
mov eax, dword [edi + 0x48]
jmp 0x406e08
lea eax, [edi + 0x48]
push 0
push 0x405f09
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 [0x422d2c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 0x7e
ja 0x40718f
je 0x407183
mov eax, ebx
dec eax
je 0x407169
dec eax
je 0x407113
sub eax, 4
je 0x4070f3
sub eax, 0x25
je 0x406f49
dec eax
jne 0x4071b3
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.0040b240
lea ebx, [edi + 0x14]
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebp - 0x64], 0x28
test eax, eax
je 0x406eae
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
push ebx
push 0xd
push dword [edi + 0x40]
call fcn.0040120f
mov eax, dword [ebx]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x406ecc
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
jmp 0x406f31
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 0x406f1c
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x406f1c
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 0x406f31
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 0x407248
cmp dword [edi + 0x14], 0
je 0x407248
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 0x406f3d
cmp dword [edi + 0xc], 0
je 0x407248
cmp byte [edi + 0x38], 0
jne 0x407248
mov ecx, edi
call fcn.00406469
jmp 0x407248
cmp dword [edi + 0xc], 0
je 0x407120
mov ecx, edi
call fcn.00406469
mov eax, dword [edi + 8]
test eax, eax
je 0x407131
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi + 8], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x407143
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [edi + 0x14], 0
mov ecx, edi
call fcn.0040645a
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 0x407248
cmp byte [ebp - 9], 0
jne 0x407177
push esi
push dword [ebp + 0x10]
push 1
jmp 0x407158
mov ecx, edi
call fcn.00406324
jmp 0x407248
mov dword [0x422d38], 1
jmp 0x4071c4
cmp ebx, 0x111
je 0x40722b
cmp ebx, 0x40a
je 0x4071ff
cmp ebx, 0x1989
je 0x4071f8
cmp ebx, 0x807c
je 0x4071ba
push esi
push dword [ebp + 0x10]
push ebx
jmp 0x407158
mov dword [0x422d34], 1
mov eax, dword [0x422d3c]
test eax, eax
je 0x4071dd
push eax
push 0
call dword [sym.imp.USER32.dll_KillTimer]
and dword [0x422d3c], 0
push 0x406a9c
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x422d3c], eax
jmp 0x407248
call fcn.00407e6d
jmp 0x407248
cmp esi, 0x201
jl 0x407248
cmp esi, 0x209
jg 0x407248
cmp dword [ebp + 0x10], 0x64
jne 0x407248
cmp byte [edi + 0x38], 0
jne 0x407248
push 0x40649b
mov byte [edi + 0x38], 1
push 0x12c
jmp 0x40723d
mov eax, dword [ebp + 0x10]
push 0x406b0b
mov dword [0x422d1c], 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.0040b2ba
leave
ret 0x10