Function at 0x10000daf8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x10009e100]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor r14d, r14d
mov rsi, r8
mov rdi, rcx
cmp rdx, r14
je 0x10003ba3a
cmp r8, r14
je 0x10003ba3a
mov qword [rcx + 0x10], rdx
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 8]
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [0x10007d2c0]
call qword [rax]
mov r15d, 1
cmp eax, r14d
jge 0x10003ba44
mov ebx, r15d
mov dword [rdi + 0x18], ebx
cmp dword [0x10009e0d4], r14d
je 0x10001d20a
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rdi + 0x28], rax
cmp rax, r14
je 0x10003ba82
mov edx, r15d
mov rcx, rax
call qword [sym.imp.GDI32.dll_SetMapMode]
or rbx, 0xffffffffffffffff
mov ebp, 0x20
cmp dword [0x10009e0a4], r14d
je 0x10003baaa
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x5c]
call sub.msvcrt.dll_memset
mov eax, dword [rsi + 4]
mov r11d, dword [rsi]
mov dword [rsp + 0x64], eax
mov eax, dword [rsi + 8]
lea rcx, [rsp + 0x7c]
mov dword [rsp + 0x70], eax
mov al, byte [rsi + 0x10]
lea rdx, [rsi + 0x18]
mov byte [rsp + 0x74], al
mov al, byte [rsi + 0x14]
mov r8d, 0x40
mov byte [rsp + 0x77], al
mov al, byte [rsi + 0x15]
mov dword [rsp + 0x60], r11d
mov byte [rsp + 0x78], al
mov al, byte [rsi + 0x16]
mov byte [rsp + 0x7a], al
mov al, byte [rsi + 0x17]
mov byte [rsp + 0x7b], al
call sub.msvcrt.dll_memcpy
mov r11b, byte [rsp + 0x7a]
test r11b, 7
je 0x10003bbbb
lea rcx, [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [rdi + 0x30], rax
cmp rax, r14
je 0x10003ba82
mov eax, dword [rsi + 0xc]
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov dword [rdi + 0x950], eax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rdi + 0x28]
mov qword [rdi + 0x38], rax
call qword [sym.imp.GDI32.dll_GetFontLanguageInfo]
mov rcx, qword [rdi + 0x28]
mov dword [rdi + 0x9c], eax
cmp dword [0x10009e0a4], r14d
je 0x10003bbc9
lea rbx, [rdi + 0x60]
mov rdx, rbx
call qword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x10000dc86
mov eax, dword [rdi + 0x78]
lea rdx, [rdi + 0x50]
lea r8, [rdi + 0x58]
mov dword [rdx], eax
mov eax, dword [rbx]
mov rcx, rdi
mov dword [rdi + 0x54], eax
call fcn.10000d8dc
mov qword [rdi + 0x40], rax
cmp rax, r14
je 0x10003ba82
mov rcx, qword [rdi + 0x28]
mov edx, 2
call qword [sym.imp.GDI32.dll_SetBkMode]
mov rcx, qword [rdi + 0x28]
xor edx, edx
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rcx, qword [rdi + 0x28]
mov edx, 0xffffff
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rdx, qword [rdi + 0x40]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.GDI32.dll_SelectObject]
lea rcx, [rdi + 0xc8]
xor edx, edx
mov r8d, 0x800
mov dword [rdi + 0xc0], r14d
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memset
lea r12, [rdi + 0x8d0]
lea rdx, [rdi + 0x8fc]
mov dword [rdi + 0x8d4], r14d
mov qword [rdi + 0x8e8], r14
mov qword [rdi + 0x908], r14
mov dword [r12], 0x15
mov dword [rdx], r15d
mov dword [rdi + 0x8f4], r15d
cmp dword [rbx], r15d
jbe 0x10000dd51
shl dword [rdi + 0x8f4], 1
add dword [rdx], r15d
mov eax, dword [rbx]
cmp dword [rdi + 0x8f4], eax
jb 0x10000dd3e
mov ecx, dword [rdi + 0x8f4]
mov eax, dword [rdx]
lea rbx, [rdi + 0x91c]
mov dword [rdi + 0x914], ecx
mov dword [rbx], eax
cmp ecx, dword [rdi + 0x74]
jb 0x10003bc45
cmp ecx, dword [rdi + 0x78]
jae 0x10000dd8a
shl dword [rdi + 0x914], 1
add dword [rbx], r15d
mov eax, dword [rdi + 0x78]
cmp dword [rdi + 0x914], eax
jb 0x10000dd76
mov r9d, dword [rdi + 0x914]
mov r10d, dword [rdi + 0x8f4]
mov eax, r9d
mov ecx, r10d
imul eax, r9d
imul ecx, r10d
mov dword [rdi + 0x918], eax
mov eax, dword [rdi + 0x950]
mov dword [rdi + 0x8f8], ecx
cmp eax, r14d
je 0x10000ddc9
cmp dword [rdx], eax
jbe 0x10000ddc3
mov dword [rdx], eax
cmp dword [rbx], eax
jbe 0x10000ddc9
mov dword [rbx], eax
movzx eax, word [rdi + 0x8c]
movzx r8d, word [rdi + 0x8e]
mov dword [rdi + 0x900], r10d
sub r8d, eax
mov eax, 0x80
mov dword [rdi + 0x920], r9d
add r8d, r15d
cmp r8d, eax
cmova r8d, eax
mov eax, r8d
imul eax, ecx
jmp 0x10000de00
cmp eax, ecx
jbe 0x10000de29
mov ecx, dword [rdi + 0x900]
cmp ecx, 0x100
jae 0x10000de29
add ecx, ecx
mov dword [rdi + 0x900], ecx
mov eax, dword [rdi + 0x8f8]
imul ecx, ecx
imul eax, r8d
jmp 0x10000de00
mov ecx, dword [rdi + 0x900]
cmp r9d, ecx
jae 0x10000de3a
mov dword [rdi + 0x920], ecx
mov eax, dword [rdi + 0x920]
imul ecx, ecx
mov dword [rsp + 0x40], 3
mov dword [rdi + 0x904], ecx
mov dword [rdi + 0x8f0], ecx
mov rcx, qword [rdi + 0x10]
imul eax, eax
mov dword [rdi + 0x924], eax
mov dword [rdi + 0x910], eax
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdx
lea r8, [rdi + 0x900]
lea rdx, [rdi + 0x900]
xor r9d, r9d
call fcn.10000dfb0
cmp eax, r14d
jl 0x10000df7a
mov eax, dword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x40], 3
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r12
lea r8, [rdi + 0x920]
lea rdx, [rdi + 0x920]
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
call fcn.10000dfb0
cmp eax, r14d
jl 0x10000df7a
cmp dword [r12], 0x15
jne 0x10003bd60
mov eax, dword [rdi + 0x8f4]
cmp dword [rdi + 0x900], eax
jb 0x10003bd60
mov eax, dword [rdi + 0x914]
cmp dword [rdi + 0x920], eax
jb 0x10003bd60
lea rcx, [rdi + 0x928]
lea rdx, [rdi + 0x8e8]
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp dword [rbx], r15d
ja 0x10003bc5f
xor edx, edx
cmp dword [0x10009e0d8], r14d
je 0x10003bca1
lea esi, [rdx + 0x10]
lea rcx, [rdi + 0xa8]
mov r8, rsi
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x28]
lea rdx, [rdi + 0xa0]
lea r8, [rdi + 0xa8]
mov dword [rdi + 0xa8], esi
call qword [0x10009e2e0]
cmp eax, r14d
jl 0x10003bc9c
xor eax, eax
jmp 0x10000df7a
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1000024e0
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [0x10009e0d4], r15d
cmp dword [0x1000a0568], r14d
jne 0x10003ba58
lea rcx, [rsp + 0x60]
mov dword [0x1000a0568], r15d
mov dword [rsp + 0x60], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x70], 2
mov r11d, r14d
sete r11b
mov dword [0x10009e0a4], r11d
jmp 0x10001d24d
cmp r11d, r14d
je 0x10001d2c8
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
cmp rax, r14
je 0x10003ba64
lea rdx, str.GetCharABCWidthsI
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e278], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.GetCharWidthI
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e280], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.GetFontUnicodeRanges
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e288], rax
cmp rax, r14
je 0x10003ba82
lea rcx, str.usp10.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
cmp rax, r14
je 0x10003ba8c
lea rdx, [0x1000828a0]
mov rcx, rbx
mov dword [0x10009e0d8], r15d
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e290], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptShape
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e298], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptPlace
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2a0], rax
cmp rax, r14
je 0x10003ba82
lea rdx, [0x1000828d0]
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2a8], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptJustify
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2b0], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptTextOut
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2b8], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptGetProperties
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2c0], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptFreeCache
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2c8], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptRecordDigitSubstitution
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2d0], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptApplyDigitSubstitution
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2d8], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptGetFontProperties
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2e0], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptStringAnalyse
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2e8], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptStringOut
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2f0], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptStringFree
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e2f8], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptStringCPtoX
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e300], rax
cmp rax, r14
je 0x10003ba82
lea rdx, str.ScriptString_pSize
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e308], rax
cmp rax, r14
je 0x10003ba82
lea rdx, [rsp + 0x50]
lea rcx, [0x1000a0560]
call qword [0x10009e2c0]
lea rdx, [0x10009fb90]
mov ecx, 0x400
call qword [0x10009e2d0]
nop
jmp 0x10000db80
mov eax, 0x8876086c
jmp 0x10000df7a
mov rcx, qword [rsp + 0x50]
lea ebx, [r15 + 5]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x10000db70
mov r11d, dword [0x10009e0a4]
jmp 0x10001d24d
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
cmp rax, r14
jne 0x10001d26b
jmp 0x10001d2c8
mov eax, 0x8007000e
jmp 0x10000df7a
lea rcx, str.usp10.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
cmp rax, r14
jne 0x10001d2e1
jmp 0x10000db80
mov rcx, qword [rdi + 0x28]
mov edx, r15d
call qword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [0x10009e0a4], r14d
jne 0x10000dbb7
lea rcx, [rsp + 0x100]
lea r8d, [rbp - 8]
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x118]
mov qword [rsp + 0x30], r14
lea r8, [rsi + 0x18]
mov r9d, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8d, [rbp + 0x1c]
lea rcx, [rsp + 0x60]
xor edx, edx
mov byte [rsp + 0x137], r14b
call sub.msvcrt.dll_memset
mov eax, dword [rsp + 0x104]
mov r11d, dword [rsp + 0x100]
mov bl, byte [rsp + 0x116]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x70], eax
mov al, byte [rsp + 0x110]
lea rcx, [rsp + 0x7c]
mov byte [rsp + 0x74], al
mov al, byte [rsp + 0x114]
lea rdx, [rsp + 0x118]
mov byte [rsp + 0x77], al
mov al, byte [rsp + 0x115]
mov r8, rbp
mov byte [rsp + 0x78], al
mov al, byte [rsp + 0x117]
mov dword [rsp + 0x60], r11d
mov byte [rsp + 0x7b], al
mov byte [rsp + 0x7a], bl
call sub.msvcrt.dll_memcpy
test bl, 7
jne 0x10003bb97
or bl, 4
mov byte [rsp + 0x7a], bl
lea rcx, [rsp + 0x60]
call qword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov qword [rdi + 0x30], rax
cmp rax, r14
je 0x10003ba82
mov eax, dword [rsp + 0x10c]
jmp 0x10000dc3e
or r11b, 4
mov byte [rsp + 0x7a], r11b
jmp 0x10000dc23
lea rdx, [rsp + 0x60]
call qword [sym.imp.GDI32.dll_GetTextMetricsA]
lea rbx, [rdi + 0x60]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x90]
mov eax, dword [rcx]
mov dword [rdi + 0x94], eax
mov al, byte [rcx + 4]
mov byte [rdi + 0x98], al
movzx eax, byte [rsp + 0x8c]
mov word [rdi + 0x8c], ax
movzx eax, byte [rsp + 0x8d]
mov word [rdi + 0x8e], ax
movzx eax, byte [rsp + 0x8e]
mov word [rdi + 0x90], ax
movzx eax, byte [rsp + 0x8f]
mov word [rdi + 0x92], ax
jmp 0x10000dc86
shl dword [rdi + 0x8f4], 1
add dword [rdx], r15d
mov eax, dword [rdi + 0x74]
cmp dword [rdi + 0x8f4], eax
jae 0x10000dd71
jmp 0x10003bc45
mov ecx, dword [rdi + 0x918]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x10007b2b0]
cmovo rax, rcx
mov rcx, rax
call fcn.10000291c
mov qword [rdi + 0x948], rax
cmp rax, r14
jne 0x10000df2e
jmp 0x10003ba82
jmp 0x10000df7a
mov ebx, 0x40
lea rcx, [rsp + 0x60]
mov r8, rbx
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x28]
lea rax, [rdi + 0xae]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x98], r15d
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x90]
mov r8d, r15d
cmp dword [0x10009e0a4], r14d
je 0x10003bcff
call qword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x10003bd05
call qword [sym.imp.GDI32.dll_GetCharacterPlacementA]
mov rcx, qword [rdi + 0x28]
lea rax, [rdi + 0xac]
xor r9d, r9d
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x98], r15d
lea rdx, [rdi + 0x92]
mov qword [rsp + 0x20], rax
mov r8d, r15d
cmp dword [0x10009e0a4], r14d
je 0x10003bd54
call qword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x10000df76
call qword [sym.imp.GDI32.dll_GetCharacterPlacementA]
nop
jmp 0x10000df76
mov eax, 0x88760b59
jmp 0x10000df7a