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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x4f92a0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call sym.Setup.exe_public_virtual:_void___thiscall_DuiLib::CLabelUI::PaintText_struct_HDC____
mov ecx, esi
call sym.Setup.exe_public:_int___thiscall_DuiLib::CScrollBarUI::GetLineSize_void_const
cmp dword [esi + 0x630], 0
jne 0x405b96
mov ecx, dword [esi + 0x44]
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CPaintManagerUI::GetDefaultFontColor_void_const
mov dword [esi + 0x630], eax
cmp dword [esi + 0x634], 0
jne 0x405bad
mov ecx, dword [esi + 0x44]
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CPaintManagerUI::GetDefaultDisabledColor_void_const
mov dword [esi + 0x634], eax
mov ecx, dword [esi + 0x15c]
add ecx, dword [esi + 0x644]
mov eax, dword [esi + 0x158]
mov edx, dword [esi + 0x160]
mov ebx, dword [esi + 0x164]
add eax, dword [esi + 0x640]
sub edx, dword [esi + 0x648]
sub ebx, dword [esi + 0x64c]
mov dword [esp + 0xb0], ecx
mov ecx, esi
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ebx
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CLabelUI::GetEnabledEffect_void_
test al, al
jne 0x405d87
lea ecx, [esi + 0x1c4]
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
jne 0x40638f
mov eax, dword [esi]
mov edx, dword [eax + 0xd4]
mov ecx, esi
mov dword [esp + 0x30], 0
call edx
test al, al
je 0x405cdf
cmp byte [esi + 0x650], 0
je 0x405c92
mov eax, dword [esi + 0x63c]
mov edx, dword [esi + 0x630]
or eax, 0x20
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push edx
lea ecx, [esi + 0x1c4]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [esi + 0x44]
push eax
lea eax, [esp + 0xc4]
push eax
push ecx
push edi
call sym.Setup.exe_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawHtmlText_struct_HDC_____class_DuiLib::CPaintManagerUI___struct_tagRECT___wchar_t_const___unsigned_long_int__struct_tagRECT___class_DuiLib::CDuiString___int___unsigned_int_
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x63c]
mov eax, dword [esi + 0x638]
mov ecx, dword [esi + 0x630]
push edx
push eax
push ecx
lea ecx, [esi + 0x1c4]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov eax, dword [esi + 0x44]
lea edx, [esp + 0xbc]
push edx
push eax
push edi
call sym.Setup.exe_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawTextW_struct_HDC_____class_DuiLib::CPaintManagerUI___struct_tagRECT___wchar_t_const___unsigned_long_int__int__unsigned_int_
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x650], 0
je 0x405d3a
mov ecx, dword [esi + 0x63c]
mov eax, dword [esi + 0x634]
or ecx, 0x20
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0
push eax
lea ecx, [esi + 0x1c4]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, dword [esi + 0x44]
push eax
lea ecx, [esp + 0xc4]
push ecx
push edx
push edi
call sym.Setup.exe_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawHtmlText_struct_HDC_____class_DuiLib::CPaintManagerUI___struct_tagRECT___wchar_t_const___unsigned_long_int__struct_tagRECT___class_DuiLib::CDuiString___int___unsigned_int_
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x63c]
mov ecx, dword [esi + 0x638]
mov edx, dword [esi + 0x634]
push eax
push ecx
push edx
lea ecx, [esi + 0x1c4]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [esi + 0x44]
push eax
lea eax, [esp + 0xbc]
push eax
push ecx
push edi
call sym.Setup.exe_public:_static_void___cdecl_DuiLib::CRenderEngine::DrawTextW_struct_HDC_____class_DuiLib::CPaintManagerUI___struct_tagRECT___wchar_t_const___unsigned_long_int__int__unsigned_int_
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
mov ecx, dword [esi + 0x44]
push eax
call sym.Setup.exe_public:_struct_HFONT______thiscall_DuiLib::CPaintManagerUI::GetFont_int_
push eax
push edi
lea ecx, [esp + 0x68]
call fcn.00405a00
lea edx, [esp + 0x3c]
push edx
xor ebx, ebx
push edi
mov dword [esp + 0x44], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov ecx, dword [esi + 0x734]
mov eax, dword [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.gdiplus.dll_GdipSetTextRenderingHint]
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateStringFormat]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x654]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatAlign]
cmp eax, ebx
je 0x405df9
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x658]
mov edx, dword [esp + 0x28]
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatLineAlign]
cmp eax, ebx
je 0x405e13
mov dword [esp + 0x2c], eax
fild dword [esp + 0xac]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [esp + 0x14]
mov eax, dword [esp + 0x14]
fild dword [esp + 0xb0]
mov dword [esp + 0x40], eax
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fst dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fild dword [esp + 0xb4]
mov dword [esp + 0x44], ecx
mov ecx, esi
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fisubr dword [esp + 0xb8]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fld dword [esi + 0x68c]
mov dword [esp + 0x4c], eax
fadd dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esi + 0x690]
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetGradientLength_void_
mov dword [esp + 0x24], eax
cmp eax, ebx
jne 0x405eb0
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xb0]
mov dword [esp + 0x24], eax
mov ecx, esi
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextShadowColorB_void_
mov ecx, esi
cmp eax, 0xffffffff
jne 0x405ec5
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextShadowColorA_void_
jmp 0x405eca
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextShadowColorB_void_
mov ecx, esi
mov ebx, eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetTransShadow1_void_
movzx edi, al
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
shl edi, 8
or edi, edx
mov eax, ebx
shr eax, 8
movzx ecx, al
shl edi, 8
or edi, ecx
movzx edx, bl
shl edi, 8
mov ecx, esi
or edi, edx
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextShadowColorA_void_
mov ecx, esi
mov dword [esp + 0xc], eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetTransShadow_void_
movzx ebx, al
mov eax, dword [esp + 0xc]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
shl ebx, 8
or ebx, edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov ecx, dword [esp + 0x24]
shl ebx, 8
or ebx, edx
movzx eax, al
mov dword [esp + 0x7c], ecx
shl ebx, 8
mov ecx, esi
or ebx, eax
mov dword [esp + 0x78], 0
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetGradientAngle_void_
mov dword [esp + 0x80], eax
xor eax, eax
lea edx, [esp + 0x30]
push edx
push eax
push edi
mov dword [esp + 0x90], eax
mov dword [esp + 0x3c], eax
push ebx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateLineBrushI]
mov edx, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x98], edx
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextColor1_void_
mov ecx, esi
cmp eax, 0xffffffff
jne 0x405f9c
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextColor_void_const
jmp 0x405fa1
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextColor1_void_
mov ecx, esi
mov ebx, eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetTransText1_void_
movzx edi, al
mov eax, ebx
shr eax, 0x10
movzx ecx, al
shl edi, 8
or edi, ecx
mov edx, ebx
shr edx, 8
movzx eax, dl
shl edi, 8
or edi, eax
movzx ecx, bl
shl edi, 8
or edi, ecx
mov ecx, esi
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextColor_void_const
mov ecx, esi
mov dword [esp + 0xc], eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetTransText_void_
movzx ebx, al
mov eax, dword [esp + 0xc]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
shl ebx, 8
or ebx, ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
shl ebx, 8
or ebx, ecx
movzx edx, al
mov eax, dword [esp + 0x24]
shl ebx, 8
mov ecx, esi
or ebx, edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetGradientAngle_void_
mov dword [esp + 0x70], eax
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push ebx
lea edx, [esp + 0x60]
mov dword [esp + 0x84], eax
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateLineBrushI]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xa4], ecx
mov ecx, esi
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CLabelUI::GetEnabledStroke_void_
test al, al
je 0x4062c1
mov ecx, esi
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetStrokeColor_void_
test eax, eax
je 0x4062c1
mov ecx, esi
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetStrokeColor_void_
mov ecx, esi
mov ebx, eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetTransStroke_void_
movzx edi, al
mov edx, ebx
shr edx, 0x10
movzx eax, dl
shl edi, 8
or edi, eax
mov ecx, ebx
shr ecx, 8
movzx edx, cl
shl edi, 8
or edi, edx
movzx eax, bl
shl edi, 8
mov ecx, esi
or edi, eax
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetStrokeColor_void_
mov ecx, esi
mov dword [esp + 0xc], eax
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetTransStroke_void_
movzx ebx, al
mov eax, dword [esp + 0xc]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
shl ebx, 8
or ebx, edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov ecx, dword [esp + 0xb8]
sub ecx, dword [esp + 0xb0]
shl ebx, 8
or ebx, edx
add ecx, 2
movzx eax, al
mov dword [esp + 0x6c], ecx
shl ebx, 8
mov ecx, esi
or ebx, eax
mov dword [esp + 0x68], 0
call sym.Setup.exe_public:_int___thiscall_DuiLib::CLabelUI::GetGradientAngle_void_
mov dword [esp + 0x58], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
push eax
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], eax
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateLineBrushI]
fld dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
fsub qword [0x4d5948]
lea ecx, [esi + 0x69c]
mov dword [esp + 0x8c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd qword [0x4d5940]
fstp dword [esp + 0x18]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const
lea ecx, [esi + 0x69c]
mov dword [esp + 0x10], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawString]
fld dword [esp + 0x14]
fadd qword [0x4d5958]
lea ecx, [esi + 0x69c]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd qword [0x4d5940]
fstp dword [esp + 0x18]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const
lea ecx, [esi + 0x69c]
mov dword [esp + 0x10], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawString]
fld dword [esp + 0x14]
fld1
lea ecx, [esi + 0x69c]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fsubr dword [esp + 0x18]
fstp dword [esp + 0x18]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const
lea ecx, [esi + 0x69c]
mov dword [esp + 0x10], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawString]
fld dword [esp + 0x14]
fadd qword [0x4d5940]
lea ecx, [esi + 0x69c]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd qword [0x4d5958]
fstp dword [esp + 0x18]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const
lea ecx, [esi + 0x69c]
mov dword [esp + 0x10], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x40]
push ebx
push ecx
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipDrawString]
fld dword [esp + 0x14]
fadd qword [0x4d5940]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
push edi
fsub qword [0x4d5948]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
fstp dword [esp + 0x1c]
call edi
jmp 0x4062cb
mov ebx, dword [esp + 0x60]
mov edi, dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov ecx, esi
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CLabelUI::GetEnabledShadow_void_
test al, al
je 0x406327
mov ecx, esi
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextShadowColorA_void_
test eax, eax
jne 0x4062ec
mov ecx, esi
call sym.Setup.exe_public:_unsigned_long_int___thiscall_DuiLib::CLabelUI::GetTextShadowColorB_void_
test eax, eax
je 0x406327
lea ecx, [esi + 0x69c]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const
lea ecx, [esi + 0x69c]
mov dword [esp + 0x10], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawString]
lea ecx, [esi + 0x69c]
call sym.Setup.exe_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const
lea ecx, [esi + 0x69c]
mov dword [esp + 0x10], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawString]
mov eax, dword [esp + 0xa4]
push eax
call edi
mov ecx, dword [esp + 0x98]
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push ebx
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e257
mov esp, ebp
pop ebp
ret 4