Function at 0x45e790
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [0x5c9f3c]
test ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
je 0x45ea66
jmp 0x45e7b3
mov ebp, dword [esp + 8]
cmp dword [ebp + 0xc8], edi
je 0x45e7cf
mov ebp, dword [ebp + 0x13b0]
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x45e7af
pop edi
pop ebp
add esp, 0x64
ret
mov eax, dword [ebp + 0x1398]
test eax, eax
je 0x45ea66
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x45ea64
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x45e81c
mov eax, dword [0x5c9dac]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x45e82c
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
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 + 0x1388]
test eax, eax
je 0x45e847
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x1388], 0
mov ebx, dword [ebp + 0x1398]
test ebx, ebx
je 0x45ea2b
mov ecx, dword [ebx + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x45ea19
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45ea19
mov edx, edi
mov ecx, ebp
call fcn.0045d790
test eax, eax
je 0x45ea19
call fcn.0045e5c0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45e8ba
mov edx, dword [ebx + 0x11c]
mov ecx, dword [ebx + 0x114]
push edx
mov edx, dword [ebx + 8]
push ecx
mov ecx, dword [ebp + 0xc8]
push 0
push eax
call fcn.004239b0
jmp 0x45ea19
cmp dword [ebx], 0
je 0x45ea19
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 [ebx]
test eax, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebp
je 0x45e985
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x45e985
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 0x45e967
mov eax, dword [esp + 0x60]
cmp eax, edi
jge 0x45e95b
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x64]
cmp eax, ebp
jge 0x45e967
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x45e976
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x45e985
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 0x45ea15
push edi
push esi
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 esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebx]
push 3
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push esi
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 esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x10]
mov ebx, dword [ebx + 0x124]
test ebx, ebx
mov edi, dword [esp + 0x14]
jne 0x45e855
mov eax, dword [ebp + 0x1388]
test eax, eax
je 0x45ea46
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x1388], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
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