Function at 0x4163c0
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45aa20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call sub.MFC42u.DLL_AfxGetThread
xor ebx, ebx
cmp eax, ebx
je 0x4163f8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov dword [esp + 0x10], eax
jmp 0x4163fe
mov dword [esp + 0x10], ebx
mov eax, ebx
cmp dword [eax + 0xdd0], ebx
je 0x416654
add eax, 0xdcc
cmp eax, ebx
jne 0x416417
xor esi, esi
jmp 0x41641a
mov esi, dword [eax + 4]
mov edi, dword [esp + 0x8c]
lea ecx, [esp + 0x50]
mov ebp, dword [edi + 4]
call fcn.00456236
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov ebx, dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [esp + 0x34], eax
push 0x18
push esi
mov dword [esp + 0x5c], 0x461ba8
mov dword [esp + 0x40], eax
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebp
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], 0
call sub.MFC42u.DLL_CDC::FromHandle
test eax, eax
je 0x41648b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CDC::Attach
test esi, esi
je 0x4164ae
mov ecx, dword [esp + 0x54]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x4164b0
xor eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push 0x18
mov ecx, dword [eax + 0xdd0]
mov dword [esp + 0x8c], 1
push ecx
call ebx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x98]
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
mov edx, ecx
neg edx
xor esi, esi
cmp edx, eax
jge 0x41652a
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
push 0xcc0020
and eax, edx
push 0
push 0
push eax
mov eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [edi + 4]
push 0
push esi
push ecx
call ebp
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x98]
add esi, ecx
mov edx, esi
sub edx, ecx
cmp edx, eax
jl 0x4164ee
mov ebx, dword [esp + 0x9c]
mov eax, dword [esp + 0x40]
test ebx, ebx
mov esi, eax
jle 0x41658f
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x90]
sub edx, ecx
mov dword [esp + 0x8c], edx
jmp 0x41655b
mov edx, dword [esp + 0x8c]
test edi, edi
jne 0x416563
xor ecx, ecx
jmp 0x416566
mov ecx, dword [edi + 4]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [esp + 0xa4]
push edx
push esi
push eax
push ecx
call ebp
mov eax, dword [esp + 0x40]
add esi, eax
mov edx, esi
sub edx, eax
cmp edx, ebx
jl 0x416554
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xcc]
test ecx, ecx
jne 0x4165c0
mov dword [esp + 0x50], 0x461ba8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x84], 2
test eax, eax
je 0x416637
push eax
mov eax, dword [esp + 0x58]
push eax
jmp 0x416631
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x98]
mov eax, dword [esi + 0xcc]
dec ebx
dec ecx
test eax, eax
je 0x416610
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0xa4]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0xb8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, dword [edi + 4]
push ecx
mov dword [edx + 0xc], ebx
call fcn.00446820
add esp, 0x28
mov dword [esp + 0x50], 0x461ba8
mov eax, dword [esp + 0x78]
mov dword [esp + 0x84], 3
test eax, eax
je 0x416637
mov edx, dword [esp + 0x54]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CDC::DeleteDC
lea ecx, [esp + 0x50]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42u.DLL_CDC::CDC
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 0x14