Function at 0x47e950
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492568
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0xc], edi
cmp ebx, edi
jne 0x47e9a5
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.mfc90u.dll_CDC::FromHandle
mov dword [ebp + 8], eax
mov dword [esp + 0xc], 1
mov ebx, eax
lea ecx, [esp + 0x34]
call fcn.004899de
mov dword [esp + 0x60], edi
cmp ebx, edi
jne 0x47e9ba
xor eax, eax
jmp 0x47e9bd
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call sub.mfc90u.dll_CDC::Attach
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], vtable.CBitmap.0
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 1
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
sub edi, dword [esp + 0x44]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
push edi
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CGdiObject::Attach
mov eax, dword [esp + 0x28]
test eax, eax
je 0x47ea30
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
lea ecx, [esp + 0x38]
call sub.mfc90u.dll_CDC::SetBkMode
mov edx, dword [esi + 0x68]
push edx
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CBrush::CBrush
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x80]
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x84]
jbe 0x47ea7a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
jmp 0x47ea90
mov eax, dword [esi + 0x84]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x80], eax
jbe 0x47eaa8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x74]
test ebx, ebx
je 0x47eab3
cmp ebx, eax
je 0x47eab9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x20], ecx
je 0x47eb35
test ebx, ebx
jne 0x47eb2d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x10]
jb 0x47eade
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
sub esp, 0x50
mov eax, esp
mov dword [esp + 0x60], esp
push eax
call fcn.0047ebc0
push 0xff
lea ecx, [esp + 0x88]
mov edx, esi
call fcn.0047e4d0
test ebx, ebx
jne 0x47eb31
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x47eb1f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x20], 0x50
mov edi, dword [esp + 0x14]
jmp 0x47ea90
mov eax, dword [ebx]
jmp 0x47eacf
mov eax, dword [ebx]
jmp 0x47eb10
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push edx
push ecx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0xc], 0
je 0x47eb6f
mov ebx, dword [ebx + 4]
mov edx, dword [esi + 0x20]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0x60], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CBrush.0
call fcn.004066b0
mov byte [esp + 0x60], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.004066b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call sub.mfc90u.dll_CDC::CDC
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4