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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d7848
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x64e0a0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x44], esi
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x60]
push eax
push dword [esi + 0x20]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x7c]
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call fcn.0042d9f1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0042d23a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x408
push dword [esi + 0x20]
call edi
fnstcw word [esp + 0x14]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
movzx eax, word [esp + 0x14]
fdiv qword [0x6226f8]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov dl, byte [esp + 0x18]
sub ecx, dword [esp + 0x20]
movzx eax, dl
fldcw word [esp + 0x14]
imul ecx, eax
cmp ecx, 0x64
jge 0x5b5556
mov al, byte [esp + 0x1c]
sub al, byte [esp + 0x20]
imul dl
mov byte [esp + 0x34], al
jmp 0x5b555b
mov byte [esp + 0x34], 0x64
test ebx, ebx
jne 0x5b5563
xor ecx, ecx
jmp 0x5b5566
mov ecx, dword [ebx + 4]
push ecx
push dword [esi + 0x88]
lea edx, [esp + 0x68]
push ecx
push dword [esp + 0x40]
push dword [esi + 0x78]
push dword [esi + 0x74]
call fcn.005b9200
add esp, 0x18
mov ecx, ebx
push 1
call fcn.0042a58d
push 0
push 0
push 0x31
push dword [esi + 0x20]
mov dword [esp + 0x5c], eax
call edi
push eax
call fcn.00429fd0
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x28]
cmp dword [esi + 0x84], 3
mov dword [esp + 0x48], eax
jne 0x5b55c9
mov esi, dword [ebx]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, ebx
call dword [esi + 0x30]
jmp 0x5b55d6
mov eax, dword [ebx]
push dword [esi + 0x80]
mov ecx, ebx
call dword [eax + 0x30]
mov dword [esp + 0x18], eax
call fcn.0042b91f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5b55f6
push 0x80004005
call fcn.00402470
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fnstcw word [esp + 0x14]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x6226f8]
movzx eax, word [esp + 0x14]
sub ecx, dword [esp + 0x20]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
movzx eax, byte [esp + 0x24]
fldcw word [esp + 0x14]
imul eax, ecx
push eax
lea eax, [esp + 0x3c]
push str._d__
push eax
call fcn.00402540
mov esi, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push dword [esi - 0xc]
push esi
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
sub eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
cdq
sub eax, edx
sar eax, 1
mov ecx, ebx
sub ecx, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
sub ecx, dword [esp + 0x58]
mov dword [esp + 0x80], edi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x8c], eax
movzx eax, byte [esp + 0x34]
mov dword [esp + 0x24], eax
mov dword [esp + 0x88], ebx
fild dword [esp + 0x24]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fst qword [esp + 0x24]
fild dword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x6226f8]
fmulp st(1)
call fcn.00549020
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
push 0
push eax
lea eax, [esp + 0x88]
push eax
call edi
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], edx
push 0
sub edx, ecx
mov dword [esp + 0x80], eax
push edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x84], ecx
call edi
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld qword [esp + 0x2c]
fdiv qword [0x6226f8]
fmul qword [esp + 0x24]
call fcn.00549020
push 0
push eax
lea eax, [esp + 0x78]
push eax
call edi
mov edi, dword [esp + 0x38]
mov ebx, dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push dword [esi - 0xc]
lea eax, [esp + 0x88]
push edi
push eax
mov eax, dword [esp + 0x4c]
push 4
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [eax + 4]
call ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
push dword [edx + 0x7c]
call dword [eax + 0x30]
push 0
push dword [esi - 0xc]
mov esi, dword [esp + 0x44]
push edi
lea eax, [esp + 0x7c]
push eax
push 4
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esi + 4]
call ebx
mov eax, dword [esi]
push dword [esp + 0x18]
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5b57fa
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x4c]
mov ecx, esi
call fcn.0042a58d
add edi, 0xfffffff0
mov dword [esp + 0xa0], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5b582a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret 8