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

Disassembly:
push 0xffffffffffffffff
push 0x4661f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esi + 0x74]
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
mov ebx, dword [esp + 0x6c]
je 0x402fab
cmp ebx, 0xfffffffe
jne 0x402fab
lea edi, [esi + 0x78]
mov ecx, edi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x64]
lea eax, [eax + edx*2]
push 0xf
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call sub.MFC71.DLL_CDC::FillSolidRect_1
mov ebp, dword [edi + 8]
mov eax, dword [edi]
mov edx, dword [esi + 0x64]
push 0x10
sub ebp, eax
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [eax*4]
push 1
sub ebp, ecx
mov ecx, dword [edi]
push ebp
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, ebx
call sub.MFC71.DLL_CDC::FillSolidRect
mov eax, dword [edi]
mov ebp, dword [edi + 8]
sub ebp, eax
mov eax, dword [esi + 0x64]
push 0x14
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [eax*4]
sub ebp, ecx
mov ecx, dword [edi]
push 1
push ebp
inc edx
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, ebx
call sub.MFC71.DLL_CDC::FillSolidRect
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x6c]
mov edi, 0xfffffffe
cmp eax, edi
jne 0x402f10
cmp dword [esi + 0x68], edi
je 0x402f10
push 0x16
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x402f1e
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call sub.MFC71.DLL_CDC::FillSolidRect_1
cmp dword [esi + 0x68], edi
jne 0x402f39
mov ecx, dword [ebx + 4]
push 0xf
push 4
lea eax, [esp + 0x30]
push eax
push ecx
jmp 0x402f4b
cmp dword [esi + 0x6c], edi
jne 0x402f51
mov eax, dword [ebx + 4]
push 0xf
push 2
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [ebx]
add esi, 0xa8
push esi
mov ecx, ebx
call dword [edx + 0x30]
push 1
mov ecx, ebx
mov esi, eax
call sub.MFC71.DLL_CDC::SetBkMode
mov edi, dword [esp + 0x10]
mov ebp, dword [ebx]
push 0x25
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebx
call dword [ebp + 0x70]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 8
lea ecx, [esi + 0x70]
mov dword [esp + 0x6c], ecx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
je 0x403154
cmp ebx, 0xfffffffd
jne 0x403154
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
lea ebx, [esi + 0x88]
call ebp
mov edi, dword [esp + 0x68]
push eax
push ebx
mov ecx, edi
call sub.MFC71.DLL_CDC::FillSolidRect_1
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call ebx
mov ecx, dword [esi + 0x6c]
mov eax, 0xfffffffd
cmp ecx, eax
jne 0x40302f
cmp dword [esi + 0x68], eax
je 0x40302f
push 0x16
call ebp
push eax
lea edx, [esp + 0x2c]
push edx
jmp 0x403039
push 0xf
call ebp
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call sub.MFC71.DLL_CDC::FillSolidRect_1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x64]
shl eax, 1
mov dword [esp + 0x4c], edx
mov edx, eax
neg edx
push edx
neg eax
push eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x60], ecx
call ebx
push 0x10
call ebp
push eax
push 1
push 0
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CPen::CPen
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x64], 0
call sub.MFC71.DLL_CDC::SelectObject
mov edx, dword [edi]
push 5
mov ecx, edi
mov ebp, eax
call dword [edx + 0x2c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebp
mov ecx, edi
call sub.MFC71.DLL_CDC::SelectObject
mov ecx, dword [esi + 0x68]
mov eax, 0xfffffffd
cmp ecx, eax
jne 0x4030e6
mov eax, dword [edi + 4]
push 0xf
push 4
lea edx, [esp + 0x30]
push edx
push eax
jmp 0x4030f8
cmp dword [esi + 0x6c], eax
jne 0x4030fe
mov edx, dword [edi + 4]
push 0xf
push 2
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [edi]
add esi, 0xa8
push esi
mov ecx, edi
call dword [eax + 0x30]
push 1
mov ecx, edi
mov esi, eax
call sub.MFC71.DLL_CDC::SetBkMode
mov ebx, dword [esp + 0x6c]
mov ebp, dword [edi]
push 0x25
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call dword [ebp + 0x70]
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0x30]
mov dword [esp + 0x10], 0x46cf70
lea ecx, [esp + 0x10]
jmp 0x403327
lea ecx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x3c]
push ebx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.00402990
test eax, eax
je 0x403334
mov edi, dword [esp + 0x68]
mov edx, dword [edi + 8]
push 0x26
push edx
mov dword [esp + 0x74], 0
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x4031ac
push 0
lea eax, [esi + 0xb0]
push eax
mov ecx, edi
call sub.MFC71.DLL_CDC::SelectPalette
mov ecx, dword [edi + 4]
push ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [esi + 0x6c], ebx
jne 0x4031c8
cmp dword [esi + 0x68], ebx
je 0x4031c8
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call ebp
push eax
lea edx, [esp + 0x3c]
push edx
jmp 0x4031d8
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebp
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call sub.MFC71.DLL_CDC::FillSolidRect_1
cmp dword [esi + 0x68], ebx
jne 0x4031f3
mov edx, dword [edi + 4]
push 0xf
push 4
lea ecx, [esp + 0x40]
push ecx
push edx
jmp 0x403205
cmp dword [esi + 0x6c], ebx
jne 0x40320b
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebx*8 + 0x482038]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
or ecx, 0x200
shl ecx, 8
movzx edx, ah
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CBrush::CBrush
mov dword [esp + 0x60], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x46da34
push 0x10
mov byte [esp + 0x64], 2
call ebp
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CGdiObject::Attach
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call sub.MFC71.DLL_CDC::SelectObject_1
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov ebx, eax
call sub.MFC71.DLL_CDC::SelectObject
mov esi, dword [esi + 0x64]
mov ebp, eax
lea eax, [esi + 1]
mov ecx, eax
neg ecx
push ecx
neg eax
push eax
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
mov ecx, edi
call sub.MFC71.DLL_CDC::SelectObject_1
push ebp
mov ecx, edi
call sub.MFC71.DLL_CDC::SelectObject
lea ecx, [esp + 0x20]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x403308
mov edx, dword [edi + 8]
push 0x26
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x403308
push 0
push esi
mov ecx, edi
call sub.MFC71.DLL_CDC::SelectPalette
mov esi, 0x46cf70
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
mov dword [esp + 0x18], esi
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8