Function at 0x45e4d1
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0045d5fc
mov edi, eax
test edi, edi
je 0x45e739
cmp dword [edi + 0x1000], 0
je 0x45e739
push dword [ebp + 8]
call sub.USER32.dll_GetDC
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45e739
push dword [ebp - 8]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45e52f
push dword [ebp - 8]
push dword [ebp + 8]
call sub.USER32.dll_ReleaseDC
jmp 0x45e739
push dword [0x561924]
call sub.GDI32.dll_CreateSolidBrush
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45e55b
push dword [ebp - 0xc]
call sub.GDI32.dll_DeleteDC
push dword [ebp - 8]
push dword [ebp + 8]
call sub.USER32.dll_ReleaseDC
jmp 0x45e739
mov eax, dword [edi + 0xff0]
test eax, eax
je 0x45e573
push eax
call sub.GDI32.dll_DeleteObject
xor edx, edx
mov dword [edi + 0xff0], edx
mov ebx, dword [edi + 0x1000]
test ebx, ebx
je 0x45e706
push dword [ebx + 0xc]
push dword [ebp + 8]
call sub.USER32.dll_GetDlgItem
mov esi, eax
test esi, esi
je 0x45e6f8
push esi
call sub.USER32.dll_IsWindowEnabled
test eax, eax
je 0x45e6f8
push esi
push edi
call fcn.0045d661
test eax, eax
je 0x45e6f8
push esi
push edi
call fcn.0045e36b
mov eax, dword [ebx + 4]
test eax, eax
je 0x45e5e6
push dword [ebx + 0x120]
push dword [ebx + 0x118]
push 0
push dword [ebx + 8]
push eax
push dword [ebx + 0xc]
push dword [edi + 0xc8]
call fcn.0042fabe
jmp 0x45e6f8
cmp dword [ebx], 0
je 0x45e6f8
lea edx, [ebp - 0x28]
push edx
push esi
call sub.USER32.dll_GetWindowRect
mov ecx, dword [ebp - 0x28]
sub dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.USER32.dll_ScreenToClient
push edi
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x38]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [ebx]
test eax, eax
je 0x45e682
lea edx, [ebp - 0x4c]
push edx
push eax
call sub.USER32.dll_GetIconInfo
test eax, eax
je 0x45e682
lea ecx, [ebp - 0x64]
push ecx
push 0x18
push dword [ebp - 0x3c]
call sub.GDI32.dll_GetObjectA
test eax, eax
je 0x45e668
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x30]
jge 0x45e65d
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x2c]
jge 0x45e668
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x45e675
push eax
call sub.GDI32.dll_DeleteObject
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45e682
push eax
call sub.GDI32.dll_DeleteObject
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 8]
call sub.GDI32.dll_CreateCompatibleBitmap
mov esi, eax
test esi, esi
je 0x45e6f8
push esi
push dword [ebp - 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x10]
lea edx, [ebp - 0x28]
push edx
push dword [ebp - 0xc]
call sub.USER32.dll_FillRect
push dword [ebx]
push 0
push 0
push dword [ebp - 0xc]
call sub.USER32.dll_DrawIcon
push 0xcc0020
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 8]
call sub.GDI32.dll_BitBlt
push dword [ebp - 4]
push dword [ebp - 0xc]
call sub.GDI32.dll_SelectObject
push esi
call sub.GDI32.dll_DeleteObject
mov ebx, dword [ebx + 0x124]
test ebx, ebx
jne 0x45e581
mov eax, dword [edi + 0xff0]
test eax, eax
je 0x45e71e
push eax
call sub.GDI32.dll_DeleteObject
xor edx, edx
mov dword [edi + 0xff0], edx
push dword [ebp - 0x10]
call sub.GDI32.dll_DeleteObject
push dword [ebp - 0xc]
call sub.GDI32.dll_DeleteDC
push dword [ebp - 8]
push dword [ebp + 8]
call sub.USER32.dll_ReleaseDC
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4