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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f1442
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov eax, dword [ebp + 8]
cmp eax, 2
jl 0x4b5cd4
mov ebx, dword [esp + 0x114]
cmp ebx, 7
jne 0x4b59a3
mov ebx, 0xa
xor edi, edi
mov eax, 0x4f5178
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x104], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 1
call fcn.00456e50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x104], 2
call fcn.00456e50
mov esi, dword [esp + 0x110]
mov byte [esp + 0x104], 3
push esi
push edi
push edi
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
call edi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
push esi
push 0
push 2
call edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x10c]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetROP2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
sub esp, 0x30
mov dword [esp + 0x64], eax
mov ecx, esp
mov dword [esp + 0x50], esp
push 0
push ecx
mov ecx, ebp
call fcn.0040b280
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x9c]
push edx
call fcn.00456e90
lea ecx, [esp + 0x9c]
call fcn.00456e80
lea eax, [esp + 0x6c]
mov ebx, dword [esp + 0x11c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x70]
and eax, ecx
test ebx, ebx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
je 0x4b5aa1
lea ecx, [esp + 0x2c]
push ecx
call fcn.00434610
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebp + 8]
mov edi, 1
cmp eax, edi
jle 0x4b5c4e
sub esp, 0x30
mov ecx, ebp
mov edx, esp
mov dword [esp + 0x50], esp
push edi
push edx
call fcn.0040b280
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x6c]
push eax
call fcn.00456e90
lea ecx, [esp + 0x9c]
call fcn.00456e80
cmp edi, 1
jne 0x4b5b1a
mov eax, dword [esp + 0x48]
cmp eax, edi
jne 0x4b5b0a
lea ecx, [esp + 0x10]
push ecx
jmp 0x4b5b13
test eax, eax
jne 0x4b5b1a
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4b5b30
cmp dword [esp + 0x48], 1
jne 0x4b5b49
lea eax, [esp + 0x10]
push eax
jmp 0x4b5b42
cmp eax, 1
jne 0x4b5b49
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4b5b49
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea eax, [esp + 0x3c]
lea edx, [esp + 0x40]
neg eax
sbb eax, eax
and eax, edx
test ebx, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x4b5b75
lea eax, [esp + 0x24]
push eax
call fcn.00434610
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0x3c]
sub esp, 0x30
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x70]
and ecx, edx
mov eax, esp
mov dword [esp + 0x50], esp
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 0xc], edx
mov cx, word [esp + 0x7c]
mov word [eax + 0x10], cx
mov edx, dword [esp + 0x80]
mov dword [eax + 0x14], edx
mov cx, word [esp + 0x84]
mov word [eax + 0x18], cx
mov dx, word [esp + 0x86]
mov word [eax + 0x1a], dx
mov cx, word [esp + 0x88]
mov word [eax + 0x1c], cx
mov dx, word [esp + 0x8a]
mov word [eax + 0x1e], dx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x20], ecx
mov edx, dword [esp + 0x90]
mov dword [eax + 0x24], edx
mov cx, word [esp + 0x94]
mov word [eax + 0x28], cx
mov edx, dword [esp + 0x98]
mov dword [eax + 0x2c], edx
mov dword [eax], 0x4f5588
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x9c]
push eax
call fcn.00456e90
lea ecx, [esp + 0xcc]
call fcn.00456e80
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x4b5ac7
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x38]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SetROP2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x3c]
mov byte [esp + 0x104], 2
call fcn.00456e80
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 1
call fcn.00456e80
mov esi, 0x4f4f14
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x104], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x4f4f00
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x104], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xf8
ret