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

Disassembly:
push 0xffffffffffffffff
push 0x4ae1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x28]
xor ebp, ebp
cmp dword [eax - 0xc], ebp
mov dword [esp + 0x90], ebp
je 0x45fd72
lea ecx, [esp + 0x58]
push ecx
or eax, 0xffffffff
lea edx, [esp + 0x9c]
push edx
mov ecx, esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call fcn.0045f6a0
cmp dword [esi + 0x5c], ebp
je 0x45f8e5
cmp dword [esi + 0xa4], ebp
je 0x45f8f7
mov eax, dword [esi + 0x4c]
push eax
call fcn.0045cc50
mov eax, dword [eax + 0x1c]
add esp, 4
mov dword [esi + 0x5c], eax
push 0x4b5450
call fcn.00415c30
add eax, 0x90
push eax
call fcn.004048d0
add esp, 8
test al, al
jne 0x45f933
push str.Microsoft_YaHei
call fcn.00415c30
add eax, 0x90
push eax
call fcn.004048d0
add esp, 8
test al, al
je 0x45fa3b
mov eax, dword [esi + 0x4c]
push eax
call fcn.0045cc50
add esp, 4
cmp dword [eax + 0x4c], 1
je 0x45fa3b
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0044d500
mov eax, dword [eax]
push eax
mov byte [esp + 0x94], 1
call fcn.0045f320
mov edi, eax
mov eax, dword [esi + 0x5c]
add esp, 4
test al, 8
mov byte [esp + 0x90], 0
je 0x45fa1b
mov ecx, dword [esp + 0x7c]
lea eax, [edi + edi]
mov edx, 0xfffffffe
mov ebx, ecx
sub edx, eax
add ecx, edx
mov dword [esp + 0x7c], ecx
mov ecx, 0xfffffffe
sub ecx, eax
add dword [esp + 0x84], ecx
cmp dword [esi + 0xa8], ebp
je 0x45fa3b
call fcn.00415c30
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x7c]
cdq
xor eax, edx
sub eax, edx
lea edx, [edi + edi*2]
lea eax, [eax + edx + 4]
mov edx, dword [esp + 0x84]
sub edx, ecx
cmp edx, eax
jge 0x45f9e0
add eax, ecx
mov dword [esp + 0x84], eax
call fcn.00415c30
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x84]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
sub ecx, edi
sub ecx, 3
cmp ecx, ebx
jge 0x45fa3b
call fcn.00415c30
mov eax, dword [eax + 4]
cdq
xor eax, edx
sub eax, edx
add eax, ebx
lea edx, [eax + edi + 3]
mov dword [esp + 0x84], edx
jmp 0x45fa3b
test al, 4
jne 0x45fa3b
lea edi, [edi + edi*2]
mov eax, 0xfffffffd
sub eax, edi
add dword [esp + 0x7c], eax
mov ecx, 0xfffffffd
sub ecx, edi
add dword [esp + 0x84], ecx
mov eax, dword [esi + 0x4c]
push eax
call fcn.0045cc50
add esp, 4
cmp dword [eax + 0x44], ebp
mov dword [esp + 0x24], eax
je 0x45fcec
mov edi, dword [esp + 0x98]
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0044d500
mov eax, dword [eax]
push eax
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 3
call fcn.0045f520
mov ebp, dword [sym.imp.GDI32.dll_GetTextColor]
push edi
mov byte [esp + 0x94], 5
call ebp
push edi
mov ebx, eax
call ebp
push edi
mov dword [esp + 0x24], eax
call ebp
cmp dword [esi + 0x60], 0xffffffff
mov dword [esp + 0x1c], eax
je 0x45fac8
mov al, byte [esi + 0x60]
jmp 0x45fad7
mov eax, dword [esi + 0x4c]
push eax
call fcn.0045cc50
mov al, byte [eax + 0x5c]
add esp, 4
cmp al, 0xff
jne 0x45fadd
mov al, 0xfe
xor ecx, ecx
mov ch, al
lea edx, [esp + 0x18]
push edx
movzx edx, byte [esp + 0x25]
shr ebx, 0x10
mov cl, byte [esp + 0x20]
movzx eax, bl
xor ebp, ebp
mov dword [esp + 0x40], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x1c], ebp
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
call sub.gdiplus.dll_GdipCreateSolidFill
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push ebp
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebp
call sub.gdiplus.dll_GdipCreateStringFormat
test byte [esi + 0x5c], 1
mov dword [esp + 0x30], eax
je 0x45fb4d
mov edx, dword [esp + 0x2c]
push 1
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x45fb4d
mov dword [esp + 0x30], eax
test byte [esi + 0x5c], 4
je 0x45fb67
mov eax, dword [esp + 0x2c]
push 1
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x45fb67
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x24]
test byte [edi + 0x64], 0x20
je 0x45fb88
mov ecx, dword [esp + 0x2c]
push 0x2000
push ecx
call sub.gdiplus.dll_GdipSetStringFormatFlags
cmp eax, ebp
je 0x45fb88
mov dword [esp + 0x30], eax
test byte [edi + 0x64], 2
je 0x45fba2
mov edx, dword [esp + 0x2c]
push 2
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x45fba2
mov dword [esp + 0x30], eax
test byte [edi + 0x64], 1
je 0x45fbbc
mov eax, dword [esp + 0x2c]
push 1
push eax
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebp
je 0x45fbbc
mov dword [esp + 0x30], eax
test byte [edi + 0x64], 4
je 0x45fbd6
mov ecx, dword [esp + 0x2c]
push 1
push ecx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x45fbd6
mov dword [esp + 0x30], eax
test byte [edi + 0x64], 8
je 0x45fbf0
mov edx, dword [esp + 0x2c]
push 2
push edx
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebp
je 0x45fbf0
mov dword [esp + 0x30], eax
test dword [esi + 0x5c], 0x8000
je 0x45fc0d
mov eax, dword [esp + 0x2c]
push 3
push eax
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, ebp
je 0x45fc0d
mov dword [esp + 0x30], eax
test dword [esi + 0x5c], 0x40000
je 0x45fc2a
mov ecx, dword [esp + 0x2c]
push 4
push ecx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, ebp
je 0x45fc2a
mov dword [esp + 0x30], eax
test dword [esi + 0x5c], 0x4000
je 0x45fc47
mov edx, dword [esp + 0x2c]
push 5
push edx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, ebp
je 0x45fc47
mov dword [esp + 0x30], eax
fild dword [esp + 0x78]
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x7c]
fstp dword [esp + 0x48]
fild dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x50]
fstp dword [esp + 0x4c]
push eax
fild dword [esp + 0x28]
mov dword [esp + 0x28], ecx
push edx
fstp dword [esp + 0x58]
fild dword [esp + 0x2c]
fstp dword [esp + 0x5c]
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, ebp
je 0x45fc9b
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
push edi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x4c]
call fcn.0044d100
mov ecx, dword [esp + 0x2c]
push ecx
call sub.gdiplus.dll_GdipDeleteStringFormat
push ebx
call sub.gdiplus.dll_GdipDeleteBrush
cmp edi, ebp
je 0x45fce0
mov edx, dword [edi]
push edx
call sub.gdiplus.dll_GdipDeleteFont
push edi
call sub.gdiplus.dll_GdipFree
mov eax, dword [esp + 0x34]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x45fd5e
mov eax, dword [esi + 0x4c]
push eax
call fcn.0045cc50
mov ebx, dword [esp + 0x9c]
add esp, 4
cmp dword [eax + 0x40], ebp
je 0x45fd46
mov eax, dword [esi + 0x4c]
push eax
call fcn.0045cc50
add esp, 4
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edi, dword [edi + 0x54]
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx - 0xc]
push 2
push 2
push edi
push eax
mov eax, dword [esi + 0x5c]
push eax
lea eax, [esp + 0x8c]
push eax
push edx
push ecx
lea ecx, [esp + 0xb8]
call fcn.0044cfe0
cmp eax, ebp
jne 0x45fd5e
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x7c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.0044d4a0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4