Function at 0x46eba8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f8], 0
je 0x46ebc7
cmp dword [esi + 4], 0
je 0x46ec34
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x46ebeb
mov eax, dword [ebp - 4]
call fcn.0046d618
test eax, eax
jne 0x46ebeb
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x46eda7
call fcn.004327f8
test al, al
je 0x46ec25
call fcn.0044437c
test al, al
je 0x46ec25
mov eax, dword [ebp - 4]
mov edx, dword [0x446e64]
call fcn.00403dcc
test al, al
je 0x46ec25
mov eax, dword [ebp - 4]
cmp byte [eax + 0x21c], 1
jne 0x46ec25
push ebp
mov eax, dword [esi + 4]
call fcn.0046ea90
pop ecx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0046e59c
jmp 0x46eda7
push 0
call sub.user32.dll_GetDC
mov ebx, eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x78]
push eax
push ebx
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0xc], eax
push ebx
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46eda0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.00470abc
push eax
call sub.user32.dll_BeginPaint
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0046ae54
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0046eba8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x78]
push eax
push 0
push 0
push ebx
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 4]
mov edx, dword [0x459a2c]
call fcn.00403dcc
test al, al
je 0x46ed61
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x276], 1
je 0x46ed33
sub dword [ebp - 0x58], 0x11
mov esi, 3
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
call fcn.00426fbc
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
call sub.user32.dll_FrameRect
dec esi
jne 0x46ed38
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.00470abc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eda7
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret