Function at 0x40d4dc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
push 0x10
call fcn.004587ba
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov ebx, dword [0x46bd32]
call fcn.00402920
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40d5c8
mov ebx, dword [0x46bd32]
call fcn.004010a1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40d593
push 4
call fcn.004587c6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40d5a6
push 1
call fcn.004587c6
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], eax
jne 0x40d5c3
jmp 0x40d5c8
pop eax
pop ebx
pop ecx
jmp 0x40d565
add esp, 0xc
cmp dword [ebp + 0xc], 0x14
jne 0x40da16
mov dword [ebp - 0x2c], esp
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d5fa
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push 0
call dword [sym.imp.USER32.dll_GetDC]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d61e
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d643
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 8]
add ebx, 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esp
mov ebx, dword [ebp - 0x30]
push dword [ebx]
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40d684
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d6ac
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [0x46bd32]
call fcn.004010a1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40d6cf
push 4
call fcn.004587c6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40d6e2
push 1
call fcn.004587c6
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40d713
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d73b
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_FillRect]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d766
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d78b
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d7ad
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d7cf
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, dword [0x46bd32]
call fcn.004010a1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40d7f2
push 4
call fcn.004587c6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40d805
push 1
call fcn.004587c6
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_SelectObject]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40d839
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 8]
add ebx, 0xc
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
push 0xcc0020
push 0
push 0
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x40d8a5
push 6
call fcn.004587c6
add esp, 4
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 8]
add ebx, 0xc
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
push 0xcc0020
push 0
push 0
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov ebx, dword [ebp - 0x34]
push dword [ebx]
mov ebx, dword [ebp - 0x30]
push dword [ebx]
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x40d90e
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_SelectObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d933
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_DeleteDC]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d955
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d97a
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d99c
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d9be
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40d9e5
push 6
call fcn.004587c6
add esp, 4
mov dword [ebp - 0x2c], esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40da11
push 6
call fcn.004587c6
add esp, 4
jmp 0x40da8d
cmp dword [ebp + 0xc], 0x115
jne 0x40da54
mov dword [ebp - 0x2c], esp
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40da4f
push 6
call fcn.004587c6
add esp, 4
jmp 0x40da8d
cmp dword [ebp + 0xc], 0x114
jne 0x40da8d
mov dword [ebp - 0x2c], esp
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40da8d
push 6
call fcn.004587c6
add esp, 4
mov ebx, dword [0x46bd32]
call fcn.004010a1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x40daad
push 4
call fcn.004587c6
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40dac0
push 1
call fcn.004587c6
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
call dword [sym.imp.USER32.dll_CallWindowProcA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40dafd
push 6
call fcn.004587c6
add esp, 4
jmp 0x40db02
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.004587c0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10