Function at 0x47a150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x124]
push eax
call sub.MFC42.DLL_CBrush::CBrush
mov ecx, dword [esi + 0x140]
mov dword [esp + 0x30], 0
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CBrush::CBrush
mov edi, dword [esp + 0x38]
push 1
mov ecx, edi
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CDC::SetBkMode
test byte [esi + 0x250], 2
je 0x47a1d4
push edi
mov ecx, esi
call fcn.0047a3e0
mov edx, dword [esi + 0x1bc]
mov eax, dword [esi + 0x1b8]
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CRect::DeflateRect_1
lea ebx, [esi + 0x1f8]
mov ecx, edi
push ebx
call sub.MFC42.DLL_CDC::SelectClipRgn_1
lea ecx, [esp + 0x3c]
push ecx
push edi
mov ecx, esi
call fcn.0047a490
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [esi + 0x1cc]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ebp
test ebx, ebx
je 0x47a210
mov ebx, dword [ebx + 4]
push ecx
push edx
mov edx, dword [edi + 4]
push eax
push ebx
push edx
call dword [sym.imp.GDI32.dll_FrameRgn]
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1b0]
neg eax
push eax
lea eax, [esp + 0x40]
neg ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x70]
cmp eax, 3
je 0x47a25e
cmp eax, 2
je 0x47a25e
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x1c4]
mov ebp, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x48], eax
jmp 0x47a272
mov ebp, dword [esp + 0x40]
mov eax, dword [esi + 0x1c4]
add ebp, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], ebp
mov ecx, dword [esi + 0x240]
test ecx, ecx
je 0x47a2f8
mov edx, dword [esi + 0x250]
mov ebx, dword [esi + 0x1b0]
test dl, 0x20
mov ecx, ebp
je 0x47a2a2
sub eax, dword [esi + 0x20c]
sub eax, ebp
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, ebp
jmp 0x47a2af
test dl, 0x40
je 0x47a2af
sub eax, dword [esi + 0x20c]
mov ecx, eax
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x208]
mov ebp, dword [edi + 4]
push 3
push edx
push eax
mov eax, dword [esi + 0x240]
push ecx
push ebx
push 0
push eax
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_DrawStateA]
mov ecx, dword [esi + 0x1b0]
mov edx, dword [esi + 0x208]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
add ecx, edx
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x250]
test cl, 0x10
je 0x47a30f
sub eax, dword [esi + 0x214]
mov dword [esp + 0x40], eax
jmp 0x47a327
test cl, 8
je 0x47a327
sub eax, dword [esi + 0x214]
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
add ebp, eax
mov dword [esp + 0x40], ebp
push 0
push ecx
lea edx, [esi + 0x248]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
lea eax, [esp + 0x3c]
push eax
call fcn.0047ba30
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x1f8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x200]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x4bd504
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x4bd4f0
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x14