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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x584895
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
xor ebx, ebx
cmp eax, ebx
jne 0x4bf969
xor eax, eax
jmp 0x4bf96c
mov eax, dword [eax + 4]
mov esi, dword [esp + 0xf8]
push eax
mov eax, dword [esp + 0x100]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov ebp, dword [esi]
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [ebp + 0x38]
lea edx, [edi + 0x194]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0x80]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
jle 0x4bfa26
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x8c]
push ecx
push edx
lea ecx, [edi + 0xa4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
call fcn.004c1090
mov eax, dword [eax]
mov ecx, dword [edi + 0x4c]
mov eax, dword [eax + 0x10]
add eax, ebp
cmp eax, ecx
jg 0x4bfa11
mov ecx, dword [edi + 0x80]
mov ebp, eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4bf9c8
jmp 0x4bfa26
mov eax, dword [esp + 0xfc]
mov edx, dword [edi + 0x4c]
mov eax, dword [eax + 4]
sub eax, edx
add eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x80]
cmp eax, ecx
mov dword [esp + 0x98], eax
jge 0x4c0155
jmp 0x4bfa43
xor ebx, ebx
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx + 0xc]
jg 0x4c0155
mov ebp, dword [ecx]
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x7c]
sub ebp, ecx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4bff7a
jmp 0x4bfa75
xor ebx, ebx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_5
push 0x5e34fc
lea ecx, [esp + 0x54]
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x50], 0x64
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa4]
push ecx
push edx
lea ecx, [edi + 0x84]
mov dword [esp + 0xf8], 1
call fcn.004c0880
mov eax, dword [edi + 0x88]
mov ecx, dword [esp + 0xa4]
cmp ecx, eax
je 0x4bfae3
mov eax, dword [ecx + 0x10]
add ecx, 0x14
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], eax
call fcn.00572d3c
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_5
push 0x5e34fc
lea ecx, [esp + 0x38]
mov byte [esp + 0xf4], 2
call sub.MFC42.DLL_CString::operator_2
mov dword [esp + 0x38], 0xffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xa8], ecx
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xa0]
push eax
push ecx
lea ecx, [edi + 0x94]
mov byte [esp + 0xf8], 3
mov dword [esp + 0xb4], edx
call fcn.004c0f60
mov eax, dword [edi + 0x98]
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
je 0x4bfb8b
lea ebx, [ecx + 0x14]
lea ecx, [esp + 0x34]
push ebx
call fcn.00572d3c
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x44], edx
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
push 0xfffffffffffffffe
lea ecx, [esp + 0x24]
add eax, ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
push 0xfffffffffffffffe
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [edi + 0x70]
mov edx, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0x48], edx
jne 0x4bfbd9
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 0xc10
mov ecx, dword [eax - 8]
jmp 0x4bfbf3
mov edx, dword [esi]
cmp eax, 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
jne 0x4bfbee
push 0xc12
jmp 0x4bfbf3
push 0xc11
lea ebx, [esp + 0x24]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [edi + 0x5c]
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x28], eax
cmp ecx, ebx
je 0x4bfcbd
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp edx, dword [edi + 0x74]
sete cl
cmp ecx, ebx
je 0x4bfcd7
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x68]
push 2
push ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xc0]
push eax
push ecx
lea ecx, [edi + 0xa4]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
call fcn.004c1090
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x68]
lea ecx, [edx + eax + 1]
inc eax
mov dword [esp + 0x68], eax
mov eax, dword [edi + 0x54]
cmp eax, 0xc56a31
mov dword [esp + 0x70], ecx
jne 0x4bfdaf
push 0xd
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x4bfd67
xor eax, eax
jmp 0x4bfd6a
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x74]
cmp ecx, edx
jne 0x4bfcd7
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x78]
cmp edx, ecx
je 0x4bfc28
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
push 2
lea ecx, [esp + 0x78]
push 2
push ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], eax
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xd8]
push eax
push ecx
lea ecx, [edi + 0xa4]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ebx
call fcn.004c1090
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x78]
lea ecx, [edx + eax + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x80], ecx
inc eax
push edx
lea ecx, [esp + 0x60]
mov dword [esp + 0x7c], eax
call sub.MFC42.DLL_CBrush::CBrush
cmp eax, ebx
jne 0x4bfe1a
xor eax, eax
jmp 0x4bfe1d
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call ebp
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x4bfda2
mov edx, dword [esi]
push 0xe
mov dword [esp + 0x4c], edx
call ebp
mov edx, dword [esp + 0x48]
push eax
mov ecx, esi
jmp 0x4bfe5f
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
jmp 0x4bfe62
push eax
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CBrush::CBrush
cmp eax, ebx
jne 0x4bfdc4
xor eax, eax
jmp 0x4bfdc7
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x64]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x84], 0x5916f4
lea ecx, [esp + 0x84]
mov byte [esp + 0xf0], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [edi + 0x54]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov byte [esp + 0xf0], 3
mov dword [esp + 0x84], 0x5916e0
jne 0x4bfda2
mov edx, dword [esi]
not eax
jmp 0x4bfe5c
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x5c], 0x5916f4
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf0], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edx, dword [esi]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xf0], 3
mov dword [esp + 0x5c], 0x5916e0
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, 3
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x4bfe79
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x70]
cmp eax, ebx
jne 0x4bfe90
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 0x810
mov ecx, dword [eax - 8]
jmp 0x4bfeaa
mov edx, dword [esi]
cmp eax, 2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
jne 0x4bfea5
push 0x812
jmp 0x4bfeaa
push 0x811
lea ebp, [esp + 0x24]
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
cmp dword [esp + 0x40], ebx
je 0x4bfef7
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [esp + 0x40]
and eax, 0xffff
push eax
push 0xe
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x20]
push 3
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp dword [esp + 0x44], ebx
je 0x4bff3b
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [esp + 0x44]
and eax, 0xffff
push eax
push 0xe
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x28]
push 3
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x3c]
add ecx, 0xfffffff0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4bfa73
xor ebx, ebx
cmp dword [edi + 0x6c], ebx
je 0x4bffaf
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xfc]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0xbc]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
cmp dword [edi + 0x68], ebx
je 0x4bffe8
mov edx, dword [esp + 0x18]
lea eax, [edx + 1]
lea edx, [esp + 0xd0]
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x100]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
push ebp
call sub.MFC42.DLL_CDC::LineTo
jmp 0x4c0023
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jle 0x4c0023
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax]
lea ebx, [edx + 1]
push ebx
lea edx, [esp + 0xe4]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebx
push ebp
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
xor ebx, ebx
mov eax, dword [esp + 0xfc]
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x14], ebx
mov ebx, dword [eax]
mov eax, dword [edi + 0x7c]
sub ebx, ecx
test eax, eax
jle 0x4c0136
mov ecx, dword [esp + 0xfc]
cmp ebx, dword [ecx + 8]
jg 0x4c0136
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString_5
push 0x5e34fc
lea ecx, [esp + 0x5c]
mov dword [esp + 0xf4], 6
mov dword [esp + 0x58], 0x64
call sub.MFC42.DLL_CString::operator_2
lea ebp, [edi + 0x84]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov dword [esp + 0xf4], 7
call fcn.004c2390
mov ebp, dword [ebp + 4]
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x4c00b3
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jl 0x4c00b3
lea eax, [esp + 0x1c]
jmp 0x4c00c1
mov dword [esp + 0x94], ebp
lea eax, [esp + 0x94]
mov eax, dword [eax]
mov ecx, dword [edi + 0x88]
cmp eax, ecx
je 0x4c00e1
mov edx, dword [eax + 0x10]
add eax, 0x14
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x58], edx
call fcn.00572d3c
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
inc ecx
lea edx, [esp + 0xc8]
lea ebp, [eax + ebx]
push ecx
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x30]
mov ecx, esi
inc eax
push eax
push ebp
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0x58]
mov ebx, ebp
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4c0040
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x80]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4bfa41
mov edx, dword [esp + 0x9c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret 8