Function at 0x45a990
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [0x5a56ec]
test ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
je 0x45ac5c
jmp 0x45a9b3
mov ebp, dword [esp + 8]
cmp dword [ebp + 0xc8], edi
je 0x45a9cf
mov ebp, dword [ebp + 0x1018]
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x45a9af
pop edi
pop ebp
add esp, 0x64
ret
mov eax, dword [ebp + 0x1000]
test eax, eax
je 0x45ac5c
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x45ac5a
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x45aa1c
mov eax, dword [0x5a5564]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x45aa2c
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x64
ret
mov eax, dword [ebp + 0xff0]
test eax, eax
je 0x45aa47
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0xff0], 0
mov esi, dword [ebp + 0x1000]
test esi, esi
je 0x45ac21
mov ecx, dword [esi + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x45ac0f
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45ac0f
mov edx, edi
mov ecx, ebp
call fcn.004599c0
test eax, eax
je 0x45ac0f
call fcn.0045a7c0
mov eax, dword [esi + 4]
test eax, eax
je 0x45aaba
mov edx, dword [esi + 0x11c]
mov ecx, dword [esi + 0x114]
push edx
mov edx, dword [esi + 8]
push ecx
mov ecx, dword [ebp + 0xc8]
push 0
push eax
call fcn.00421620
jmp 0x45ac0f
cmp dword [esi], 0
je 0x45ac0f
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
sub ebp, ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebp
je 0x45ab85
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x45ab85
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x5c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x45ab67
mov eax, dword [esp + 0x60]
cmp eax, edi
jge 0x45ab5b
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
cmp eax, ebp
jge 0x45ab67
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x45ab76
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x45ab85
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
je 0x45ac0b
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
mov ebp, eax
xor eax, eax
push edx
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi]
push eax
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_DrawIcon]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x10]
mov esi, dword [esi + 0x120]
test esi, esi
mov edi, dword [esp + 0x14]
jne 0x45aa55
mov eax, dword [ebp + 0xff0]
test eax, eax
je 0x45ac3c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0xff0], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x64
ret