Function at 0x4d3034
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x4d3308
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4d3308
mov edi, dword [esp + 0x58]
cmp edi, 0xffffffff
jne 0x4d3065
mov eax, dword [esi + 0x340]
test eax, eax
je 0x4d3308
cmp edi, dword [esi + 0xf4]
jge 0x4d3308
cmp edi, 0xffffffff
jne 0x4d3082
lea eax, [esi + 0x1a0]
mov dword [esp + 0xc], eax
jmp 0x4d309a
mov ecx, dword [esi + 0xec]
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esp + 0xc], edx
mov eax, edx
test eax, eax
je 0x4d3308
test byte [eax + 0x44], 8
jne 0x4d3308
lea ebx, [eax + 0x1a8]
lea eax, [esp + 0x24]
push ebx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
neg ecx
neg edx
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x88c]
test eax, eax
je 0x4d3104
cmp edi, 0xffffffff
je 0x4d3104
mov ecx, dword [ebx]
mov eax, dword [esi + 0x348]
cmp ecx, eax
jl 0x4d3104
mov eax, dword [esi + 0x340]
test eax, eax
jne 0x4d3308
mov edx, dword [esi + 8]
push ebp
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x34]
sub eax, edx
push eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x2c], eax
call ebp
push 0
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.004cbb90
push eax
push edi
call ebp
push 1
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0xbc], 1
jne 0x4d3176
lea edx, [esp + 0x28]
push edx
jmp 0x4d327b
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x18], 0
test eax, eax
je 0x4d31ef
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xe8]
lea edx, [esp + 0x48]
push edx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [edx]
mov edx, dword [esp + 0x48]
sub eax, edx
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x1ac]
sub ecx, edx
mov edx, dword [esp + 0x3c]
add ecx, edx
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0xe8]
push eax
push edx
push edi
call fcn.004c0000
mov dword [esp + 0x18], 1
mov ecx, dword [esi + 0x878]
test ecx, ecx
je 0x4d326e
call fcn.0047c420
test eax, eax
je 0x4d326e
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, dword [ecx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x3c]
sub edx, dword [ecx + 0x1ac]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x40]
sub edx, eax
mov eax, dword [esp + 0x44]
sub eax, ecx
mov ecx, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x878]
push 0
push 0
push 0
mov dword [esp + 0x60], edx
push 0
push 0
lea edx, [esp + 0x60]
push 2
push edx
push edi
mov dword [esp + 0x78], eax
call fcn.0047ba10
jmp 0x4d3283
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4d3283
lea eax, [esp + 0x28]
push eax
push edi
mov ecx, esi
call fcn.004d2f20
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004d1a70
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0xcc0020
sub eax, edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push edi
sub ecx, edx
mov edx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x1ac]
mov edx, dword [ecx]
push eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x20]
push ecx
push edi
call ebp
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call ebp
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret 4