Function at 0x4511b5
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x580014]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
cmp byte [edi + 0x40], 0
je 0x4511f8
test esi, esi
jne 0x4511f8
mov byte [edi + 0x41], 1
jmp 0x451a69
cmp dword [edi + 0x18], 0
je 0x451a69
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x451217
test esi, esi
je 0x451a69
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov byte [edi + 0x41], cl
mov esi, ecx
mov dword [esp + 0x3c], esi
test eax, eax
je 0x451255
cmp eax, 1
je 0x451255
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 5
mov esi, eax
mov eax, dword [esp + 0x14]
push 0
push eax
push esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, esi
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x451265
mov eax, ecx
mov dword [esp + 0x14], ecx
jmp 0x45129f
test eax, eax
je 0x451292
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x4000000
or eax, 0x20c00000
shr eax, 0x16
push eax
mov eax, dword [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDCEx]
jmp 0x45129b
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4512c8
push str.Missing_DC_for_non_client_drawing
push 0xa
push 0x89b
push 0x255e6c8
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_61420]
test esi, esi
je 0x451a69
push esi
jmp 0x451a63
push 0
push eax
call dword [sym.imp.GDI32.dll_SetLayout]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x451323
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x89b
or ecx, 0x80070000
mov dword [esp + 0x60], 0x54a548
test eax, eax
mov dword [esp + 0x64], 0x54a538
cmovle ecx, eax
xor eax, eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x60]
push eax
push str.SetLayoutFailure
mov dword [esp + 0x70], ecx
push ecx
mov ecx, 0x255e6c9
call fcn.00453b15
lea eax, [esp + 0x80]
mov ecx, edi
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004504e6
cmp dword [esp + 0x1c], 0
jne 0x451434
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x64], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov dword [esp + 0x74], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0xa0], ecx
call dword [sym.imp.GDI32.dll_RectVisible]
test eax, eax
jne 0x451430
lea eax, [esp + 0x90]
push eax
push edi
call dword [sym.imp.GDI32.dll_RectVisible]
test eax, eax
jne 0x451430
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.GDI32.dll_RectVisible]
test eax, eax
jne 0x451430
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.GDI32.dll_RectVisible]
test eax, eax
jne 0x451430
mov ecx, dword [esp + 8]
push edi
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4512ba
mov edi, dword [esp + 8]
mov ecx, dword [edi + 0x18]
push 2
call fcn.0044c44e
mov ecx, dword [edi + 4]
lea edx, [edi + 0x18]
mov byte [esp + 0x20], al
mov byte [esp + 0x34], 0
call fcn.0044df7c
test al, al
jne 0x451a1b
cmp byte [edi + 0x148], al
jne 0x45147f
mov ecx, edi
call fcn.00450bdf
cmp byte [edi + 0x148], 0
jne 0x45147f
push 0
push 0x21d05e3
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_43250]
cmp byte [esp + 0x34], 0
lea esi, [edi + 0x54]
push 0x1c
pop ecx
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0xb0]
lea edi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4514a9
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0xbc]
sub eax, dword [esp + 0xb4]
test eax, eax
jle 0x451a17
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xb0]
test eax, eax
jle 0x451a17
mov esi, dword [esp + 0x14]
xor eax, eax
and dword [esp + 0x38], eax
mov edi, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], eax
jne 0x451639
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x45158b
push dword [esp + 0x30]
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45157e
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x451639
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x89b
or ecx, 0x80070000
mov dword [esp + 0x50], 0x54a548
test eax, eax
mov dword [esp + 0x54], 0x54a538
cmovle ecx, eax
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x50]
push eax
push str.SelectObjectFailure
mov dword [esp + 0x60], ecx
push ecx
mov ecx, 0x255e6ca
call fcn.00453b15
jmp 0x4515a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x255e6cb
jmp 0x451596
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x255e6cc
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.00453de8
test edi, edi
je 0x451601
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x451601
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x89b
or ecx, 0x80070000
mov dword [esp + 0x50], 0x54a548
test eax, eax
mov dword [esp + 0x54], 0x54a538
cmovle ecx, eax
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x50]
push eax
push str.DeviceContextDeletionFailure
mov dword [esp + 0x60], ecx
push ecx
mov ecx, 0x255e6ce
call fcn.00453b15
mov eax, dword [esp + 0x18]
test eax, eax
je 0x451633
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x45161c
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x451633
push str.BitmapDeletionFailure
push 0xa
push 0x89b
push 0x255e6cf
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_61420]
mov edi, esi
mov dword [esp + 0xc], esi
mov dl, byte [esp + 0x20]
lea ecx, [esp + 0x10]
call fcn.0044e076
mov esi, dword [esp + 0x10]
push 0
test esi, esi
jne 0x45165a
push 0x250d458
jmp 0x451479
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
and eax, 0xffffff
lea edx, [esp + 0x24]
push eax
mov ecx, edi
call fcn.00416fba
mov edi, dword [esp + 8]
cmp byte [edi + 0x2a], 0
jne 0x4516bf
cmp byte [edi + 0x13], 0
jne 0x4516bf
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
lea eax, [ecx - 1]
mov cl, byte [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
call fcn.0044e0c0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x50]
and eax, 0xffffff
push eax
call fcn.00416fba
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, 0xc00000
mov ecx, eax
and eax, edx
mov dword [esp + 0x40], eax
cmp eax, edx
jne 0x451868
test ecx, 0x80000
je 0x451868
cmp byte [edi + 0x12], 0
jne 0x451783
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xd0], eax
je 0x451783
cmp dword [edi + 0x2c], 0
je 0x451783
mov ecx, dword [esp + 0xdc]
sub ecx, dword [esp + 0xd4]
sub eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xc]
push 3
push 0
push 0
push ecx
push eax
push dword [edi + 0x2c]
mov dword [esp + 0x5c], ecx
push dword [esp + 0xec]
mov dword [esp + 0x64], eax
push dword [esp + 0xec]
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
test eax, eax
jne 0x451783
mov ecx, edi
call fcn.0045044a
cmp dword [edi + 0x2c], 0
je 0x451783
push 3
push 0
push 0
push dword [esp + 0x50]
push dword [esp + 0x58]
push dword [edi + 0x2c]
push dword [esp + 0xec]
push dword [esp + 0xec]
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0xc]
lea ecx, [esp + 0x124]
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_60221]
mov ecx, dword [esp + 8]
lea esi, [esp + 0xe0]
lea edi, [esp + 0x50]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x50]
push dword [ecx + 0x144]
push dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
push eax
push 3
lea eax, [esp + 0x130]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.004509d8
mov eax, dword [esp + 8]
lea esi, [esp + 0xf0]
lea edi, [esp + 0x50]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x50]
push dword [eax + 0x144]
push dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
push ecx
push 4
lea ecx, [esp + 0x130]
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, eax
movsd dword es:[edi], dword [esi]
call fcn.004509d8
mov eax, dword [esp + 8]
lea esi, [esp + 0x100]
lea edi, [esp + 0x50]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x50]
push dword [eax + 0x144]
push dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
push ecx
push 5
lea ecx, [esp + 0x130]
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, eax
movsd dword es:[edi], dword [esi]
call fcn.004509d8
lea esi, [esp + 0x110]
lea edi, [esp + 0x50]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 8]
mov ecx, edi
mov esi, dword [esp + 0x10]
push dword [edi + 0x144]
push esi
push eax
push 6
lea eax, [esp + 0x130]
push eax
call fcn.004509d8
mov eax, dword [esp + 0x40]
mov edx, 0xc00000
cmp byte [edi + 0x12], 0
jne 0x451896
cmp eax, edx
jne 0x451896
sub esp, 0x10
lea esi, [esp + 0xd0]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, edi
push esi
push dword [esp + 0x20]
call fcn.00451da1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
cmp eax, edx
je 0x451929
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0xcc0020
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x18]
push ecx
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x451925
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x89b
or ecx, 0x80070000
mov dword [esp + 0x50], 0x54a548
test eax, eax
mov dword [esp + 0x54], 0x54a538
cmovle ecx, eax
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x50]
push eax
push str.BitBltFailure
mov dword [esp + 0x60], ecx
push ecx
mov ecx, 0x255e6d0
call fcn.00453b15
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x451986
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x451986
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x89b
or ecx, 0x80070000
mov dword [esp + 0x50], 0x54a548
test eax, eax
mov dword [esp + 0x54], 0x54a538
cmovle ecx, eax
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x50]
push eax
push str.SelectObjectFailure
mov dword [esp + 0x60], ecx
push ecx
mov ecx, 0x255e6d1
call fcn.00453b15
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4519b0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
jne 0x4519b0
push str.BitmapDeletionFailure
push 0xa
push 0x89b
push 0x255e6d2
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_61420]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x14]
je 0x451a0e
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x451a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x89b
or ecx, 0x80070000
mov dword [esp + 0x50], 0x54a548
test eax, eax
mov dword [esp + 0x54], 0x54a538
cmovle ecx, eax
xor eax, eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x50]
push eax
push str.DeviceContextDeletionFailure
mov dword [esp + 0x60], ecx
push ecx
mov ecx, 0x255e6d3
call fcn.00453b15
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x451a1b
mov edi, dword [esp + 8]
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
mov ecx, edi
push eax
push esi
call fcn.00451ba3
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x451a49
push eax
push esi
call dword [sym.imp.GDI32.dll_SetLayout]
cmp dword [esp + 0x1c], 0
jne 0x451a5a
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x451a69
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.0051a430
mov esp, ebp
pop ebp
ret 8