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

Disassembly:
push 0xffffffffffffffff
push 0x10064620
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100a501c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb0]
xor ebp, ebp
mov dword [esp + 0x9c], ebp
cmp ebx, ebp
je 0x10035c9d
mov esi, dword [esp + 0xa8]
cmp esi, ebp
je 0x10035c9d
cmp dword [esi + 0xf4], 1
je 0x100358b5
cmp byte [esi + 0x75], 0
jne 0x100358b5
mov eax, dword [esp + 0xa4]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0xb4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 0xa4]
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
push edx
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0xb8]
push edx
mov ecx, esi
call sym.DTLUI.dll_public:_struct_HFONT______thiscall_DuiLib::CPaintManagerUI::GetFont_int_
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [esp + 0xa8]
push eax
call esi
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xac]
or ecx, 0x800
push ecx
push edx
push 0xffffffffffffffff
mov edi, eax
mov eax, dword [esp + 0xb0]
push ebx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0xa4]
push edi
push ecx
call esi
jmp 0x10035c9d
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x28], 5
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
push ecx
push eax
mov byte [esp + 0xa4], 1
call sub.gdiplus.dll_GdipSaveGraphics
cmp eax, ebp
je 0x100358fa
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0xb8]
push edx
mov ecx, esi
call sym.DTLUI.dll_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
mov edi, eax
cmp byte [edi + 0x8f], 0
je 0x10035964
cmp byte [edi + 0x8c], 0
mov ebx, dword [esi + 0x220]
je 0x10035928
mov ebp, 1
cmp byte [edi + 0x8e], 0
je 0x10035934
or ebp, 2
cmp byte [edi + 0x8d], 0
je 0x10035940
or ebp, 4
push 8
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x10035982
fild dword [edi + 0x88]
mov edx, dword [edi + 4]
push ebp
push ecx
mov eax, ebx
fstp dword [esp]
call fcn.10038b10
jmp 0x10035984
push 8
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebp
je 0x10035982
mov ecx, dword [edi]
mov edi, dword [esp + 0xa4]
push ecx
mov esi, eax
call fcn.10038a80
jmp 0x10035984
xor eax, eax
mov esi, dword [esp + 0xac]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov edi, eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
sub edx, eax
mov eax, dword [esi + 0xc]
fstp dword [esp + 0x68]
fild dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x1c]
fstp dword [esp + 0x6c]
push ecx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb8]
mov edx, eax
shr edx, 0x10
fstp dword [esp + 0x74]
fild dword [esp + 0x20]
movzx ecx, dl
mov edx, eax
or ecx, 0xfffffe00
shr edx, 8
fstp dword [esp + 0x78]
shl ecx, 8
movzx edx, dl
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
xor ebp, ebp
push ecx
mov dword [esp + 0x44], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipCreateSolidFill
mov ecx, dword [esp + 0x1c]
push 0x100a6c78
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
call sub.gdiplus.dll_GdipStringFormatGetGenericTypographic
lea edx, [esp + 0x2c]
mov dword [0x100a6c7c], eax
mov eax, dword [0x100a6c78]
push edx
push eax
mov dword [esp + 0x34], ebp
call sub.gdiplus.dll_GdipCloneStringFormat
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x30], eax
test ebx, 0x8000
je 0x10035a65
mov ecx, dword [esp + 0x2c]
push 3
push ecx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, ebp
je 0x10035a65
mov dword [esp + 0x30], eax
xor eax, eax
test ebx, 0x100
je 0x10035a74
mov eax, 0x4000
test bl, 0x20
je 0x10035a7e
or eax, 0x1000
mov edx, dword [esp + 0x2c]
push eax
push edx
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, ebp
je 0x10035a91
mov dword [esp + 0x30], eax
test bl, 1
je 0x10035a9f
mov eax, dword [esp + 0x2c]
push 1
push eax
jmp 0x10035ab3
test bl, 2
je 0x10035aad
mov ecx, dword [esp + 0x2c]
push 2
push ecx
jmp 0x10035ab3
mov edx, dword [esp + 0x2c]
push ebp
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x10035ac0
mov dword [esp + 0x30], eax
test bl, 4
je 0x10035ace
mov eax, dword [esp + 0x2c]
push 1
push eax
jmp 0x10035ae2
test bl, 8
je 0x10035adc
mov ecx, dword [esp + 0x2c]
push 2
push ecx
jmp 0x10035ae2
mov edx, dword [esp + 0x2c]
push ebp
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x10035aef
mov dword [esp + 0x30], eax
fldz
fst dword [esp + 0x64]
fst dword [esp + 0x60]
fst dword [esp + 0x5c]
fstp dword [esp + 0x58]
cmp edi, ebp
je 0x10035b09
mov eax, dword [edi]
jmp 0x10035b0b
xor eax, eax
mov edx, dword [esp + 0x2c]
push ebp
push ebp
lea ecx, [esp + 0x60]
push ecx
push edx
mov edx, dword [esp + 0xc0]
lea ecx, [esp + 0x78]
push ecx
push eax
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push edx
push eax
call sub.gdiplus.dll_GdipMeasureString
cmp eax, ebp
je 0x10035b39
mov dword [esp + 0x38], eax
test ebx, 0x400
je 0x10035b6b
fld dword [esp + 0x64]
call fcn.100636c0
fld dword [esp + 0x60]
mov ecx, dword [esi + 4]
lea edx, [eax + ecx + 1]
mov dword [esi + 0xc], edx
call fcn.100636c0
mov ecx, dword [esi]
lea edx, [eax + ecx + 1]
mov dword [esi + 8], edx
jmp 0x10035c62
mov ebx, dword [esp + 0xa8]
cmp dword [ebx + 8], ebp
jbe 0x10035c2d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xa8]
call sym.DTLUI.dll_public:_class_DuiLib::gdi::CBitmapT_0____thiscall_DuiLib::gdi::CDCT_1_::GetCurrentBitmap_void_
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x78]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x10035c2d
cmp word [esp + 0x8a], 0x20
jne 0x10035c2d
mov ebp, dword [esp + 0x8c]
test ebp, ebp
je 0x10035c2d
fldz
lea edx, [esp + 0x48]
fst dword [esp + 0x48]
lea ecx, [esp + 0x58]
fstp dword [esp + 0x4c]
mov esi, edx
fild dword [esp + 0x7c]
fstp dword [esp + 0x50]
fild dword [esp + 0x80]
fstp dword [esp + 0x54]
call fcn.10038970
test eax, eax
je 0x10035c2d
fld dword [esp + 0x50]
fld qword [0x10072a90]
fmul st(1), st(0)
fld dword [esp + 0x48]
faddp st(2)
fxch st(1)
call fcn.100636c0
fmul dword [esp + 0x54]
mov esi, eax
fadd dword [esp + 0x4c]
call fcn.100636c0
imul eax, dword [esp + 0x7c]
add eax, esi
mov eax, dword [ebp + eax*4]
cmp eax, dword [ebx + 8]
jae 0x10035c2d
mov dword [esp + 0x20], 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push edx
call sub.gdiplus.dll_GdipSetTextRenderingHint
test eax, eax
je 0x10035c44
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x68]
push eax
push ecx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x34]
lea esi, [esp + 0x3c]
call fcn.10038920
test edi, edi
je 0x10035c74
mov edx, dword [edi]
push edx
call sub.gdiplus.dll_GdipDeleteFont
push edi
call sub.gdiplus.dll_GdipFree
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
push eax
push esi
call sub.gdiplus.dll_GdipRestoreGraphics
mov ecx, dword [esp + 0x2c]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov edx, dword [esp + 0x1c]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
push esi
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret