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

Disassembly:
sub esp, 0x148
push ebx
push ebp
mov ebp, dword [esp + 0x154]
push esi
xor esi, esi
cmp ebp, esi
jne 0x42da13
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x148
ret
mov ecx, dword [ebp + 0x60]
lea edx, [esp + 0x34]
push edx
lea edx, [ebp + 0x68]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
fld qword [esp + 0x44]
fmul qword [0x44abb8]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x3c]
fmul qword [0x44abb8]
sar eax, 8
xor ebx, ebx
mov bh, al
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x34]
fmul qword [0x44abb8]
mov bl, ah
shl ebx, 8
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 0x64]
lea edx, [esp + 0x34]
sar eax, 8
and eax, 0xff
push edx
or ebx, eax
mov eax, dword [ecx]
lea edx, [ebp + 0xa8]
mov dword [esp + 0x2c], ebx
push edx
call dword [eax + 0x10]
fld qword [esp + 0x44]
fmul qword [0x44abb8]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x3c]
fmul qword [0x44abb8]
sar eax, 8
xor ebx, ebx
mov bh, al
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x34]
fmul qword [0x44abb8]
mov bl, ah
shl ebx, 8
call sub.MSVCRT.dll__ftol
sar eax, 8
and eax, 0xff
or ebx, eax
mov eax, dword [ebp + 0x1a8]
cmp eax, 3
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
je 0x42df34
cmp eax, 7
je 0x42df34
push edi
mov ecx, ebp
call fcn.0041eee0
mov edi, str.Courier
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], esi
repne scasb al, byte es:[edi]
fstp st(0)
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
lea edx, [esp + 0x90]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0x130]
mov ecx, eax
and ecx, 3
mov dword [esp + 0x20], 0
test edx, edx
mov dword [esp + 0x24], 0
rep movsb byte es:[edi], byte [esi]
je 0x42dd1e
mov eax, dword [edx + 0x20]
test eax, eax
je 0x42db71
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x28]
mov ecx, eax
and eax, 0x40000
mov dword [esp + 0x18], eax
mov eax, dword [edx + 8]
and ecx, 0x40
test eax, eax
mov dword [esp + 0x14], ecx
je 0x42db95
mov dword [esp + 0x10], 1
mov ecx, dword [edx + 0xc]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x90]
push str._Italic
push edx
mov dword [0x46b770], ecx
call ebx
add esp, 8
test eax, eax
jne 0x42dbe6
lea eax, [esp + 0x90]
push 0x468714
push eax
call ebx
add esp, 8
test eax, eax
jne 0x42dbe6
lea ecx, [esp + 0x90]
push str.Italic
push ecx
call ebx
add esp, 8
test eax, eax
je 0x42dbf1
mov byte [eax], 0
mov dword [esp + 0x14], 1
lea edx, [esp + 0x90]
push str._Bold
push edx
call ebx
add esp, 8
test eax, eax
jne 0x42dc49
lea eax, [esp + 0x90]
push 0x4686fc
push eax
call ebx
add esp, 8
test eax, eax
jne 0x42dc49
lea ecx, [esp + 0x90]
push str.Bold
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x42dc49
lea edx, [esp + 0x90]
push str._Black
push edx
call ebx
add esp, 8
test eax, eax
je 0x42dc54
mov byte [eax], 0
mov dword [esp + 0x18], 1
lea eax, [esp + 0x90]
push 0x4686f0
push eax
call ebx
add esp, 8
test eax, eax
je 0x42dc94
mov byte [eax], 0
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x90]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push str.STHeiti
push ecx
call ebx
add esp, 8
test eax, eax
je 0x42dcd3
mov edi, str.SimHei
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push str.STSong
push ecx
call ebx
add esp, 8
test eax, eax
je 0x42dd12
mov edi, str.SimSun
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42ddf6
mov ecx, 0x46b680
test ecx, ecx
je 0x42ddf6
mov eax, dword [0x46b688]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x34], eax
jle 0x42ddf6
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42ddf6
mov edx, dword [0x46b680]
mov edi, dword [edx + ebx*4]
test edi, edi
je 0x42dde9
cmp dword [edi], 2
jne 0x42dde9
cmp dword [edi + 8], 4
jne 0x42dde9
mov eax, dword [edi + 0x10]
mov esi, str.PointText
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42dd96
test cl, cl
je 0x42dd92
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42dd96
add eax, 2
add esi, 2
test cl, cl
jne 0x42dd72
xor eax, eax
jmp 0x42dd9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42dde9
cmp dword [edi + 0x18], 7
jne 0x42dde9
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x42dde9
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0xd
push eax
push str.Vertical
call fcn.00409b60
test eax, eax
je 0x42dde0
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x42dde0
mov ecx, dword [esp + 0x58]
mov eax, 1
cmp ecx, eax
jne 0x42dde0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x50]
call fcn.0042a5e0
mov eax, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x42dd3e
lea ecx, [esp + 0x78]
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, ebp
call fcn.0041ef30
lea edx, [esp + 0x60]
mov dword [esp + 0x88], 0
test edx, edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
pop edi
je 0x42deac
lea eax, [esp + 0x5c]
push eax
call fcn.0042d780
fmul qword [0x44abc8]
lea ecx, [esp + 0x60]
push ecx
fstp qword [esp + 0x24]
call fcn.0042d960
lea edx, [esp + 0x64]
fstp st(0)
push edx
call fcn.0042d940
fmul qword [0x449ba0]
add esp, 0xc
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x1c]
fcomp qword [0x449948]
mov dword [esp + 0x18], eax
fnstsw ax
test ah, 0x40
je 0x42deac
lea eax, [esp + 0x5c]
push eax
call fcn.0042df40
add esp, 4
test eax, eax
je 0x42deac
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push str.EUC_JP
mov dword [0x46b788], ecx
mov ecx, dword [esp + 0x20]
push str.SHIFT_JIS
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x190]
push eax
push ecx
mov ecx, dword [esp + 0x1a4]
lea eax, [esp + 0xb8]
push edx
mov edx, dword [esp + 0x1a4]
push eax
mov eax, dword [esp + 0x19c]
push ecx
mov ecx, dword [esp + 0x19c]
push edx
push eax
push ecx
mov ecx, 0x46b768
call fcn.004028d0
mov dword [0x46b788], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret