Function at 0x499cab
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x4f9570
call fcn.004a920c
sub esp, 0x60
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x9c], ebx
jne 0x499d29
mov eax, dword [ebp + 0x18]
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_MapDialogRect]
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0x18], 0xffffffff
jne 0x499cfd
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
jmp 0x499d0a
push 0xa
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0xffff
lea eax, [ebp - 0x24]
push esi
push eax
push 0x5000100e
push ebx
lea ecx, [esi + 0x80]
call fcn.004e1e37
test eax, eax
jne 0x499d30
xor eax, eax
jmp 0x499ed6
push edi
lea ecx, [ebp - 0x14]
call fcn.00405340
mov dword [ebp - 0x14], 0x4fda24
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004d6d64
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004d6d64
push dword [esi + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004d6e06
mov edi, eax
cmp edi, ebx
jne 0x499d74
xor eax, eax
jmp 0x499d77
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.004d6e1b
test edi, edi
jne 0x499d91
xor eax, eax
jmp 0x499d94
mov eax, dword [edi + 4]
push eax
call ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.004d6e1b
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x24]
lea ebx, [esi + 0x78]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call fcn.004d78bd
push dword [edi + 4]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x499de5
mov ebx, dword [ebx + 4]
push ebx
push dword [ebp - 0x40]
call fcn.004d6f46
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x44]
push eax
call fcn.004e1cd1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00401b73
test eax, eax
je 0x499e86
lea eax, [ebp - 0x6c]
push eax
push 0x18
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x30]
call fcn.004d6f46
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x20]
sub ebx, dword [ebp - 0x24]
push 0xcc0020
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x64]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
mov dword [ebp + 0x18], eax
mov eax, ebx
cdq
sub eax, edx
push dword [ebp + 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x68]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
lea ecx, [ebp - 0x34]
neg ecx
sbb ecx, ecx
push eax
and ecx, dword [ebp - 0x30]
push ecx
push edi
push ebx
push 0
push 0
push dword [ebp - 0x40]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esi + 0x78]
pop edi
test eax, eax
je 0x499e91
mov eax, dword [eax + 4]
push eax
push 0
push 0x172
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004d6e83
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004d6e83
mov dword [ebp - 0x14], vtable.CGdiObject.0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
call fcn.004d7914
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14