Function at 0x405de4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41e7d0]
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 [0x41fd64]
push edi
mov edi, dword [ebp + 8]
jne 0x405e11
xor eax, eax
inc dl
inc eax
mov ecx, eax
dec ecx
je 0x40617b
dec ecx
je 0x406136
sub ecx, 4
je 0x406123
sub ecx, 0x25
je 0x405f7a
dec ecx
je 0x405ead
sub ecx, 0xe5
je 0x405e8b
sub ecx, 0x2f9
je 0x405e50
push esi
push dword [ebp + 0x10]
push eax
jmp 0x406185
cmp esi, 0x201
jl 0x406199
cmp esi, 0x209
jg 0x406199
cmp dword [ebp + 0x10], 0x64
jne 0x406199
cmp byte [edi + 0x24], bl
jne 0x406199
push 0x405b6c
mov byte [edi + 0x24], 1
push 0x12c
jmp 0x405e9d
mov eax, dword [ebp + 0x10]
push 0x405d3a
mov dword [0x41fd5c], eax
push 0x12d
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x406199
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
push 0x2c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004098e0
lea ebx, [edi + 0x14]
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x60], 0x28
je 0x405ee3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
push ebx
push 0xd
push dword [edi + 0x2c]
call fcn.00401137
mov eax, dword [ebx]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x405f01
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
jmp 0x405f66
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 0x405f51
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x400000
je 0x405f51
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 0x405f66
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 0x406199
cmp dword [edi + 0x14], ebx
je 0x406199
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 0x405f72
cmp dword [edi + 0xc], ebx
je 0x406199
cmp byte [edi + 0x24], bl
jne 0x406199
mov ecx, edi
call fcn.00405b3a
jmp 0x406199
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x406144
mov ecx, edi
call fcn.00405b3a
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x406154
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 8], ebx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x406165
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x14], ebx
mov ecx, edi
call fcn.00405b2c
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
push dword [ebp + 0x10]
push 2
jmp 0x406185
test dl, dl
jne 0x406192
push esi
push dword [ebp + 0x10]
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ebx, eax
jmp 0x406199
mov ecx, edi
call fcn.00405a3a
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040995a
leave
ret 0x10