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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x583df8
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xe4]
cmp eax, 1
jne 0x4b46bf
lea edi, [esi + 0xe8]
xor ebp, ebp
cmp edi, ebp
je 0x4b46c4
cmp dword [edi + 4], ebp
jne 0x4b475e
jmp 0x4b46c4
cmp eax, 2
jne 0x4b472a
mov eax, dword [esi + 0x104]
mov edx, dword [esi + 0x108]
mov ecx, dword [esi + 0x10c]
mov dword [esp + 0x24], eax
add edx, eax
mov eax, dword [esi + 0x110]
mov dword [esp + 0x28], ecx
add eax, ecx
mov ecx, dword [esi + 0xe0]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xac]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xa8]
push ecx
push edx
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004b6c00
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
cmp eax, 3
jne 0x4b48d1
mov eax, dword [esi + 0xb0]
mov ecx, dword [esp + 0x5c]
add esi, 0xf4
push eax
push esi
call sub.MFC42.DLL_CDC::FillSolidRect_1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
lea ecx, [esp + 0x14]
call fcn.00572d84
mov edx, dword [esi + 0xec]
lea ecx, [esp + 0x34]
push ecx
push 0x18
push edx
mov dword [esp + 0x60], ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::Attach
cmp edi, ebp
jne 0x4b4798
xor edi, edi
jmp 0x4b479b
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x18]
push ebx
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ebx, eax
mov al, byte [esi + 0xf0]
test al, al
mov dword [esp + 0x14], ebx
je 0x4b485d
mov eax, dword [esi + 0x110]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x40]
cdq
idiv ebp
test eax, eax
jl 0x4b48a9
mov ebx, dword [esp + 0x3c]
mov eax, dword [esi + 0x108]
xor edi, edi
cdq
idiv ebx
test eax, eax
jl 0x4b4841
mov ecx, ebp
mov edx, dword [esi + 0x10c]
imul ecx, dword [esp + 0x10]
add ecx, edx
mov edx, ebx
imul edx, edi
mov eax, dword [esi + 0x104]
push 0xcc0020
add edx, eax
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x24]
push 0
push eax
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x108]
mov ebx, dword [esp + 0x3c]
cdq
idiv ebx
mov ebp, dword [esp + 0x40]
inc edi
cmp edi, eax
jle 0x4b47e7
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x10]
cdq
idiv ebp
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jle 0x4b47d8
mov ebx, dword [esp + 0x14]
jmp 0x4b48a9
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
mov ecx, dword [esi + 0x110]
and eax, ebp
mov ebp, dword [esp + 0x40]
mov edx, dword [esi + 0x108]
push 0xcc0020
mov edi, dword [esi + 0x10c]
push ebp
mov ebp, dword [esp + 0x44]
mov esi, dword [esi + 0x104]
push ebp
push 0
push 0
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push edi
mov ecx, dword [eax + 4]
push esi
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
test ebx, ebx
jne 0x4b48b1
xor eax, eax
jmp 0x4b48b4
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
pop ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret 4