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

Disassembly:
sub esp, 0xa0
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x433547
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0xc0]
test ah, 0x80
je 0x4335a5
mov eax, dword [esi + 0xf8]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esi + 0x50], eax
jne 0x433577
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x50], eax
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x30]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00433390
pop esi
add esp, 0xa0
ret
mov ecx, dword [esi + 0xf8]
push ebx
push ebp
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4335de
test dword [esi + 0xc0], 0x4000000
jne 0x4335de
mov dword [esp + 0x10], eax
jmp 0x43362c
mov eax, dword [esi + 0xf8]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xc0]
test ah, 0x7e
je 0x43360a
push 0xfffffffffffffffd
lea ecx, [esp + 0x28]
push 0xfffffffffffffffd
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0xd0]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jne 0x43362c
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0xc0]
lea edx, [esp + 0x78]
mov ecx, eax
mov ebx, eax
and cl, 2
push edx
neg cl
sbb ecx, ecx
and eax, 0xff
and ecx, 0x12c
and ebx, 0xff
shr eax, 2
add ecx, 0x190
and eax, 1
shr ebx, 3
push edi
mov dword [esp + 0x28], ecx
and ebx, 1
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea ebp, [esi + 0x90]
push 0
mov ecx, ebp
call fcn.0043baa0
push 0
mov ecx, ebp
call fcn.0043baa0
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push 0
push 0
push 0
mov edx, dword [esp + 0x20]
push 0
push 1
push 0
push eax
push ebx
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push edi
mov dword [esi + 0x50], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4336da
test dword [esi + 0xc0], 0x4000000
je 0x433754
mov ecx, dword [esi + 0xf8]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0xbc]
lea eax, [esp + 0x24]
or dh, 4
lea ecx, [esi + 0x64]
push edx
push eax
push 0xffffffffffffffff
push 0
call fcn.0043baa0
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
test eax, eax
je 0x433754
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jge 0x43372b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
cmp eax, edx
jl 0x433754
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 3
mov dword [esp + 0x10], eax
jle 0x433754
mov eax, dword [esp + 0x38]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x43367a
mov edx, dword [esp + 0x14]
push edx
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esi + 0xf8]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, esi
call fcn.00433390
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xa0
ret