Function at 0x4940f6
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov ebx, ecx
push edi
test esi, esi
mov dword [esp + 0x18], ebx
je 0x49449f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x3c]
mov ebp, eax
push ecx
push esi
mov ecx, ebx
call fcn.00494506
mov edi, eax
test edi, edi
je 0x494196
push 0
call dword [sym.imp.user32.dll_GetDC]
mov ebp, dword [sym.imp.gdi32.dll_GetDeviceCaps]
mov esi, eax
push 0x58
push esi
call ebp
push 0x5a
push esi
mov ebx, eax
call ebp
push esi
push 0
mov ebp, eax
call dword [sym.imp.user32.dll_ReleaseDC]
movsx edx, word [esp + 0x42]
movsx eax, word [esp + 0x46]
sub eax, edx
mov ecx, dword [esp + 0x4a]
imul eax, ebx
cdq
and ecx, 0xffff
mov ebx, dword [esp + 0x18]
idiv ecx
movsx edx, word [esp + 0x44]
mov esi, eax
movsx eax, word [esp + 0x48]
sub eax, edx
mov dword [esp + 0x14], esi
imul eax, ebp
cdq
idiv ecx
mov dword [esp + 0x10], eax
jmp 0x4941dc
mov eax, dword [esi]
push 0
push ebp
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x54]
push ecx
push esi
mov ecx, ebx
call fcn.004946a6
mov edi, eax
test edi, edi
jne 0x4941c0
lea edx, [ebx + 0x44]
mov edi, 0x683840
jmp 0x494482
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub esi, edx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x148]
test ecx, ecx
je 0x4941fa
push edi
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
lea edx, [ebx + 0x44]
mov edi, 0x683834
jmp 0x494482
test esi, esi
je 0x494473
test eax, eax
je 0x494473
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x494219
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x494228
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00494776
push 0
call dword [sym.imp.user32.dll_GetDC]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push ebx
xor ebx, ebx
push ebx
mov esi, eax
call dword [sym.imp.user32.dll_ReleaseDC]
cmp esi, ebx
je 0x494452
cmp ebp, ebx
je 0x494435
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0xc
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
push ebp
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.gdi32.dll_SelectObject]
push 5
mov dword [esp + 0x28], eax
call dword [sym.imp.user32.dll_GetSysColor]
mov ebx, dword [sym.imp.gdi32.dll_SetBkColor]
push eax
push esi
call ebx
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 2
push 0
push 0
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.gdi32.dll_ExtTextOutA]
mov edx, dword [esp + 0x20]
push edx
push esi
call ebx
push 0
push 0
push edi
call dword [sym.imp.gdi32.dll_GetEnhMetaFilePaletteEntries]
mov ebx, eax
test ebx, ebx
je 0x494370
lea eax, [ebx*4 + 4]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x494335
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.gdi32.dll_DeleteObject]
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
push edi
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
mov edx, dword [esp + 0x18]
mov edi, 0x683834
add edx, 0x44
jmp 0x494482
lea ecx, [ebp + 4]
mov word [ebp], 0x300
push ecx
push ebx
push edi
mov word [ebp + 2], bx
call dword [sym.imp.gdi32.dll_GetEnhMetaFilePaletteEntries]
push ebp
call dword [sym.imp.gdi32.dll_CreatePalette]
push ebp
mov ebx, eax
call dword [sym.imp.kernel32.dll_GlobalFree]
push 0
push ebx
push esi
call dword [sym.imp.gdi32.dll_SelectPalette]
push esi
call dword [sym.imp.gdi32.dll_RealizePalette]
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push edi
push esi
call dword [sym.imp.gdi32.dll_PlayEnhMetaFile]
mov eax, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.gdi32.dll_SelectObject]
push edi
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x148]
test eax, eax
je 0x4943b9
push ebp
call dword [sym.imp.gdi32.dll_DeleteObject]
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
lea edx, [edi + 0x44]
mov edi, 0x683834
jmp 0x494482
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0xa
push ecx
push edx
push eax
mov ecx, edi
call fcn.00470456
test eax, eax
jne 0x4943f2
push ebp
call dword [sym.imp.gdi32.dll_DeleteObject]
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
mov ecx, dword [edi + 4]
push 0
push ecx
push 0
mov ecx, edi
call fcn.004705f6
mov edx, dword [esp + 0x18]
push eax
push edx
push 0
push ebp
push esi
call dword [sym.imp.gdi32.dll_GetDIBits]
push ebp
mov edi, eax
call dword [sym.imp.gdi32.dll_DeleteObject]
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setne al
add esp, 0xa8
ret 0xc
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
push edi
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
cmp ebp, ebx
je 0x49445d
push ebp
call dword [sym.imp.gdi32.dll_DeleteObject]
push edi
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc
push edi
call dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
lea edx, [ebx + 0x44]
mov edi, 0x68382c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc