Function at 0x4ed0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58c538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], esi
je 0x4ed384
mov ecx, dword [esi + 0x70]
cmp ecx, edi
je 0x4ed10d
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x70]
cmp ecx, edi
je 0x4ed10a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x70], edi
push 8
call sub.MFC71.DLL_operator_new_1
add esp, 4
cmp eax, edi
je 0x4ed126
mov dword [eax + 4], edi
mov dword [eax], 0x596538
jmp 0x4ed128
xor eax, eax
mov edx, dword [esi + 0x20]
push ebx
push ebp
lea ecx, [esp + 0x68]
push ecx
push edx
mov dword [esi + 0x70], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
sub ebp, ecx
sub ebx, eax
mov eax, dword [esi + 0x6c]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x7c]
push ecx
push 0x18
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], eax
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 0x18
call sub.MFC71.DLL_CDC::CDC
mov eax, dword [esp + 0xa4]
cmp eax, edi
mov dword [esp + 0x9c], edi
jne 0x4ed1cf
xor eax, eax
jmp 0x4ed1d2
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CDC::Attach
mov eax, dword [esp + 0x28]
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esi + 0x70]
push eax
call sub.MFC71.DLL_CGdiObject::Attach
mov eax, dword [esi + 0x70]
cmp eax, edi
jne 0x4ed20f
xor eax, eax
jmp 0x4ed212
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call sub.MFC71.DLL_CDC::SelectGdiObject
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esi + 0xb0], edi
call dword [edx + 0x13c]
cmp dword [esp + 0x18], edi
mov dword [esi + 0xb0], 1
je 0x4ed34b
lea eax, [ebp + ebp*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
cmp ebx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], edi
jle 0x4ed32d
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x18]
add ecx, edx
cmp ebp, edi
jle 0x4ed307
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, ebp
nop
cmp edi, eax
mov edx, edi
jl 0x4ed298
mov edx, eax
mov esi, dword [esp + 0x10]
cmp edx, esi
jl 0x4ed2a2
mov edx, esi
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x4ed2ac
mov edx, esi
cmp edx, 0xa
jl 0x4ed2b6
mov edx, 0xa
imul edx, edx, 0x13
mov bl, dl
imul edx, edx, 0xff
not bl
movzx esi, bl
movzx ebx, byte [ecx]
imul ebx, esi
add ebx, edx
sar ebx, 8
mov byte [ecx], bl
movzx ebx, byte [ecx + 1]
inc ecx
imul ebx, esi
add ebx, edx
sar ebx, 8
mov byte [ecx], bl
movzx ebx, byte [ecx + 1]
inc ecx
imul ebx, esi
add ebx, edx
sar ebx, 8
inc ecx
mov byte [ecx - 1], bl
inc edi
dec eax
cmp edi, ebp
jl 0x4ed290
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
xor edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
dec edx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jl 0x4ed277
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x40]
push ecx
push edx
push ebx
push edi
push edi
push edi
push ebx
push ebp
push edi
push edi
push eax
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CDC::DeleteDC
xor ecx, ecx
xor eax, eax
mov dword [esi + 0xac], ecx
lea ecx, [esp + 0x24]
mov dword [esi + 0x94], 1
mov dword [esi + 0xa8], eax
mov dword [esp + 0x9c], 0xffffffff
call fcn.00556f48
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x90
ret 4