Function at 0x405860
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41d730]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
xor dl, dl
cmp eax, dword [0x41ecc4]
push edi
mov edi, dword [ebp + 8]
jne 0x40588d
xor eax, eax
inc dl
inc eax
mov ecx, eax
dec ecx
je 0x405c78
dec ecx
je 0x405c33
sub ecx, 4
je 0x405c20
sub ecx, 0x25
je 0x405a77
dec ecx
je 0x405929
sub ecx, 0xe5
je 0x405907
sub ecx, 0x2f9
je 0x4058cc
push esi
push dword [ebp + 0x10]
push eax
jmp 0x405c82
cmp esi, 0x201
jl 0x405c96
cmp esi, 0x209
jg 0x405c96
cmp dword [ebp + 0x10], 0x64
jne 0x405c96
cmp byte [edi + 0x24], bl
jne 0x405c96
push 0x405408
mov byte [edi + 0x24], 1
push 0x12c
jmp 0x405919
mov eax, dword [ebp + 0x10]
push 0x4055d6
mov dword [0x41ecbc], eax
push 0x12d
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x405c96
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
push 0x2c
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00409400
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x60], 0x28
je 0x40595e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0x2c]
add eax, 0xfffffffd
cmp eax, 8
ja case.default.0x405969
jmp dword [eax*4 + 0x405cac]
cmp dword [edi + 0x48], 0x10
jb 0x40597b
mov eax, dword [edi + 0x34]
jmp 0x40597e
lea eax, [edi + 0x34]
push dword [0x41eccc]
push 0x67
jmp 0x4059e6
cmp dword [edi + 0x48], 0x10
jb 0x405993
mov eax, dword [edi + 0x34]
jmp 0x405996
lea eax, [edi + 0x34]
push dword [0x41eccc]
push 0x6a
jmp 0x4059e6
cmp dword [edi + 0x48], 0x10
jb 0x4059ab
mov eax, dword [edi + 0x34]
jmp 0x4059ae
lea eax, [edi + 0x34]
push dword [0x41eccc]
push 0x69
jmp 0x4059e6
cmp dword [edi + 0x48], 0x10
jb 0x4059c3
mov eax, dword [edi + 0x34]
jmp 0x4059c6
lea eax, [edi + 0x34]
push dword [0x41eccc]
push 0x6b
jmp 0x4059e6
cmp dword [edi + 0x48], 0x10
jb 0x4059db
mov eax, dword [edi + 0x34]
jmp 0x4059de
lea eax, [edi + 0x34]
push dword [0x41eccc]
push 0x68
push eax
call sub.hccutils.DLL_LoadBITMAP
add esp, 0xc
cmp eax, ebx
mov dword [edi + 0x14], eax
jne 0x4059fe
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
jmp 0x405a63
push ebx
lea ecx, [ebp - 0x60]
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 - 0x58]
push ebx
push str.Progman
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x405a4e
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x400000
je 0x405a4e
push 0x36
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
inc ecx
sub ecx, eax
mov eax, dword [ebp - 0x5c]
lea eax, [eax + ecx*2]
mov dword [esi + 0xc], eax
jmp 0x405a63
push 0x36
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x5c]
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]
xor ebx, ebx
inc ebx
jmp 0x405c96
cmp dword [edi + 0x14], ebx
je 0x405c96
push dword [esi + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call ebx
push dword [esi + 0x18]
mov dword [ebp - 0x10], 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 - 0x18], ecx
push eax
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [edi + 0x14]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push dword [ebp - 8]
call edi
push dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
call ebx
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
call edi
push 0xffffff
push dword [ebp - 0x10]
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 - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
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 - 0x20], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xcc0020
push dword [esi + 0x20]
mov dword [ebp - 0x34], eax
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push 0
push dword [ebp - 0xc]
call ebx
push 0x660046
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push eax
push dword [ebp - 0xc]
call ebx
push 0x8800c6
xor eax, eax
push eax
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push eax
push dword [ebp - 0xc]
call ebx
push 0x660046
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push eax
push dword [ebp - 0xc]
call ebx
push 0xcc0020
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
call ebx
push dword [ebp - 0x20]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x34]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call edi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x30]
call esi
jmp 0x405a6f
cmp dword [edi + 0xc], ebx
je 0x405c96
cmp byte [edi + 0x24], bl
jne 0x405c96
mov ecx, edi
call fcn.004053d6
jmp 0x405c96
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x405c41
mov ecx, edi
call fcn.004053d6
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x405c51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 8], ebx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x405c62
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x14], ebx
mov ecx, edi
call fcn.004053c8
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
push dword [ebp + 0x10]
push 2
jmp 0x405c82
test dl, dl
jne 0x405c8f
push esi
push dword [ebp + 0x10]
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ebx, eax
jmp 0x405c96
mov ecx, edi
call fcn.00405680
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040947a
leave
ret 0x10