Function at 0x5691c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x597b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xc]
mov ebp, dword [esi]
mov ebx, dword [esi + 8]
dec eax
inc ebp
add ebx, 0xfffffffe
mov dword [esi + 0xc], eax
mov dword [esi], ebp
mov dword [esi + 8], ebx
mov eax, dword [ecx + 0xe4]
push eax
push 1
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CPen::CPen
mov edi, dword [esp + 0x84]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esi + 0xc]
mov ebx, eax
mov eax, dword [esi]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
inc eax
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov edx, esi
push 0xe0e0e0
mov eax, dword [edx]
inc eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], eax
inc ecx
lea eax, [esp + 0x60]
mov ebp, dword [edx + 8]
mov dword [esp + 0x64], ecx
push eax
mov ecx, edi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], edx
call sub.MFC42.DLL_CDC::FillSolidRect
push 0
push 1
push 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 1
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esi + 4]
mov eax, dword [esi]
inc edx
inc eax
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
inc edx
mov ecx, edi
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 4]
mov edx, dword [esi]
inc ecx
inc edx
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi]
mov ecx, dword [esi + 0xc]
inc edx
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
push ebx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x94]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx + ecx*4 + 0x30]
test eax, eax
lea ebp, [edx + ecx*4]
jle 0x5695af
mov ebx, esi
mov ecx, dword [ebx]
add ecx, 2
mov edx, dword [ebx + 4]
mov dword [esp + 0x2c], ecx
add edx, 2
mov dword [esp + 0x4c], ecx
mov eax, dword [ebx + 8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x54], eax
sub eax, ecx
imul eax, dword [ebp + 0x30]
mov dword [esp + 0x50], edx
mov edx, eax
mov eax, 0x51eb851f
mov ebx, dword [ebx + 0xc]
imul edx
sar edx, 5
mov eax, edx
mov dword [esp + 0x38], ebx
shr eax, 0x1f
add edx, eax
lea eax, [esp + 0x2c]
add ecx, edx
mov dword [esp + 0x34], ecx
inc ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xf0]
mov ecx, edi
push edx
push eax
call sub.MFC42.DLL_CDC::FillSolidRect
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x5695af
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x84]
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp + 0x34]
mov byte [esp + 0x74], 3
push ecx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x84]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x56943f
mov edx, dword [ebp + 0x30]
lea eax, [esp + 0x90]
push edx
push str._d__
push eax
jmp 0x56944c
mov ecx, dword [ebp + 0x30]
lea edx, [esp + 0x90]
push ecx
push eax
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, edi
push 1
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], 0
inc eax
mov dword [esp + 0x14], 0x5ced28
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov byte [esp + 0x84], 4
call esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectClipRgn
mov eax, dword [esp + 0x8c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov eax, dword [esp + 0x90]
mov edx, dword [edi]
lea ebp, [esp + 0x3c]
push 0x25
mov ecx, dword [eax - 8]
push ebp
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ebx
push eax
push ecx
push edx
call esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SelectClipRgn
mov eax, dword [esp + 0x88]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov eax, dword [esp + 0x90]
mov ecx, dword [eax - 8]
mov edx, dword [edi]
lea esi, [esp + 0x3c]
push 0x25
push esi
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
push 0
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectClipRgn
mov dword [esp + 0x14], 0x59da10
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], 0x59d9fc
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x90]
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CString::CString
mov esi, 0x59da10
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x1c], 0x59d9fc
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0x1c