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

Disassembly:
sub esp, 0x1a0
push ebx
mov ebx, dword [esp + 0x1a8]
test ebx, ebx
je 0x543f35
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x543f34
mov ecx, dword [0x68d3e0]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea eax, [esp + 0x48]
push eax
push 0
push 0x80c8
push ecx
mov dword [esp + 0x58], 0
call ebp
mov edx, dword [esp + 0x48]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xffffffffffffffa0
push 5
mov dword [esp + 0x58], eax
call edi
push eax
call fcn.0055cd70
add esp, 8
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff6
push 5
mov dword [esp + 0x54], eax
call edi
push eax
call fcn.0055ce10
add esp, 8
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push esi
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push 0
push 0xce
push ebx
mov dword [esp + 0x74], eax
call ebp
mov edi, eax
push 0
inc edi
push edi
push 0xbb
push ebx
call ebp
push 0
push 0
push 0xba
push ebx
mov dword [esp + 0x44], eax
call ebp
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x80]
push 0x5f4a40
push eax
mov dword [esp + 0x3c], ecx
call fcn.005d9929
add esp, 0xc
push 0x2420
lea ecx, [esp + 0x28]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x88]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
test eax, eax
mov dword [esp + 0x38], eax
jle 0x543efa
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
add eax, 8
mov dword [esp + 0x20], eax
add eax, 5
mov dword [esp + 0x10], eax
push 0x61a9a8
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x543ca9
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [0x61a9ac], edx
lea edx, [esp + 0x10]
push edx
push 0
mov dword [0x61a9a8], ecx
mov ecx, dword [esp + 0x24]
push 0xb3
push ebx
mov dword [0x61a9b0], eax
mov dword [0x61a9b4], ecx
call ebp
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
dec eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edx
call dword [sym.imp.USER32.dll_ValidateRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
lea edx, [esp + 0x7c]
push 0x132
push edx
call fcn.004232e0
lea eax, [esp + 0x84]
push 0x132
push eax
call fcn.00423310
add esp, 0x10
push eax
lea ecx, [esp + 0x80]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x7c]
push str.RichEdit20A
push edx
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x543d5b
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0xd6
push ebx
call ebp
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
cdq
idiv ecx
mov eax, dword [esp + 0x14]
test edx, edx
je 0x543d80
sub edx, ecx
add eax, edx
mov dword [esp + 0x14], eax
jmp 0x543d80
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jl 0x543e26
push edi
lea eax, [esp + 0x80]
push 0x5f4a40
push eax
call fcn.005d9929
add esp, 0xc
push 0x2420
lea ecx, [esp + 0x70]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x88]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [esp + 0x7c]
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x543df0
mov edx, dword [esp + 0x28]
push 0
sub eax, ebp
push eax
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x3c]
push 6
push edx
sub eax, dword [esp + 0x8c]
lea edx, [eax + ecx - 4]
push edx
jmp 0x543e38
push 0
push 0
push 0x5f4c90
lea edx, [esp + 0x30]
push edx
push 6
push eax
push ecx
mov ebp, dword [sym.imp.GDI32.dll_ExtTextOutA]
push esi
call ebp
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
inc edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x543d80
push 0xffffffffffffffe0
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call fcn.0055cd70
add esp, 8
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
test edi, edi
je 0x543ec1
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
push 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x20]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x34]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x20]
push 0
push 0
push 0x5f4c90
lea eax, [esp + 0x60]
push eax
push 6
push 0
push 0
inc edx
push esi
mov dword [esp + 0x74], edx
call ebp
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x64]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x68]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x50]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1a0
ret