Function at 0x45ea80
Capabilities:
Capture screenshot

Disassembly:
push esi
push edi
push ebp
sub esp, 0x64
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
test byte [edx + 0x20], 4
je 0x45eaa1
add esp, 0x64
pop ebp
pop edi
pop esi
ret 8
push 0
push eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov ebp, eax
mov eax, dword [esp + 0x4c]
test byte [eax + 0x20], 1
je 0x45ed97
cmp word [eax + 0x24], 1
sete al
mov byte [esp + 0x58], al
xor edx, edx
mov dword [esp + 0x44], edx
cmp byte [esp + 0x58], 0
je 0x45eadb
mov dword [esp + 0x44], 2
xor bh, bh
mov byte [esp + 0x5c], bh
mov byte [esp + 0x54], bh
cmp dword [esp + 0x50], 0
jne 0x45eda0
mov eax, dword [esp + 0x48]
push eax
mov byte [esp + 0x60], 1
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [esp + 0x50], eax
lea ebx, [esp + 0x78]
mov eax, dword [esp + 0x50]
mov edx, dword [0x477b78]
mov byte [esp + 0x54], 1
call fcn.0045b0a0
mov dword [esp + 0x74], eax
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
mov ebx, dword [esp + 0x58]
push ebx
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
mov esi, dword [esp + 0x78]
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.DLL_SelectObject]
push ebx
mov edi, ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, edi
push ecx
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.DLL_SelectObject]
mov ebx, dword [0x477b80]
mov dword [esp + 0x34], eax
cmp byte [esp + 0x58], 0
je 0x45eb8d
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x45eb8d
mov ebx, esi
mov eax, dword [esp + 0x4c]
push ebx
add eax, 8
push eax
mov edi, dword [esp + 0x7c]
push edi
call dword [sym.imp.USER32.DLL_FillRect]
lea edi, [esp + 0x18]
lea esi, [ebp + 0x10]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc eax
sub dword [esp + 0x18], 4
sub dword [esp + 0x1c], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [edx + 4]
cmp byte [esp + 0x58], 0
je 0x45ebdc
mov eax, dword [esp + 0x4c]
test byte [eax + 0x20], 2
je 0x45ebdc
mov edx, dword [eax + 0x18]
push edx
mov ecx, dword [esp + 0x18]
push ecx
mov esi, dword [esp + 0x18]
push esi
mov edi, dword [esp + 0x28]
push edi
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x88]
call fcn.0045e920
push edx
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.GDI32.DLL_SelectObject]
push 0
push 0
mov ecx, dword [esp + 0x40]
push ecx
mov esi, eax
call dword [sym.imp.GDI32.DLL_GetPixel]
push esi
mov esi, dword [esp + 0x3c]
push esi
mov edi, eax
call dword [sym.imp.GDI32.DLL_SelectObject]
push 0xf
call dword [sym.imp.USER32.DLL_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.DLL_SetBkColor]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
push edi
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x18]
push esi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
call fcn.0045f7c0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45ec97
push eax
push esi
mov ebx, dword [esp + 0x44]
call dword [sym.imp.GDI32.DLL_SelectObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteObject]
cmp byte [esp + 0x54], 0
je 0x45eca9
mov esi, dword [esp + 0x74]
push esi
call dword [sym.imp.GDI32.DLL_DeleteDC]
mov ebx, dword [esp + 0x38]
push 1
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x64], 1
push eax
mov edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x38]
push edx
mov eax, ebx
mov edi, dword [esp + 0x40]
call fcn.0045e760
cmp byte [esp + 0x58], 0
je 0x45edbb
mov ecx, dword [0x477b90]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0045e4f0
mov ecx, dword [0x477b98]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0045e590
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [eax + 0x10]
push edx
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
call fcn.0045b1d0
push 0xcc0020
push 0
push 0
push ebx
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esp + 0x44]
push edx
mov ecx, dword [esp + 0x44]
push ecx
mov ebp, dword [esp + 0x70]
push ebp
call dword [sym.imp.GDI32.DLL_BitBlt]
push edi
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp byte [esp + 0x5c], 0
je 0x45ed75
push ebp
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.USER32.DLL_ReleaseDC]
push esi
call dword [sym.imp.GDI32.DLL_DeleteObject]
cmp byte [esp + 0x60], 0
je 0x45ea98
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
add esp, 0x64
pop ebp
pop edi
pop esi
ret 8
mov byte [esp + 0x58], bl
jmp 0x45eac6
cmp dword [esp + 0x74], 0
je 0x45eb04
cmp dword [esp + 0x78], 0
je 0x45eb04
jmp 0x45eb20
mov ecx, dword [0x477b88]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0045e4f0
mov ecx, dword [0x477b90]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0045e620
mov ecx, dword [0x477b90]
push ecx
push 1
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, ebx
call fcn.0045e6c0
jmp 0x45ed06