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

Disassembly:
sub esp, 0x140
mov eax, dword [0x1005c0e4]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x144]
push ebx
push ebp
mov ebp, dword [esp + 0x154]
push esi
mov esi, dword [esp + 0x154]
push edi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x32
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0
call fcn.1001a090
add esp, 0x10
cmp dword [esp + 0x28], 0
je 0x1001608b
push 0
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.1001bff0
add esp, 0xc
call sym.fontconfig.dll_FcPatternCreate
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x10016640
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [ebp], ecx
jle 0x1001633e
nop dword [eax]
mov eax, dword [ebp + 8]
lea ebp, [eax + ecx*8]
mov ecx, dword [esp + 0x24]
add ebp, ecx
mov dword [esp + 0x3c], ebp
mov eax, dword [ebp]
cmp eax, 2
je 0x10016328
cmp eax, 4
je 0x10016328
cmp eax, 6
je 0x10016328
cmp eax, 1
je 0x100160f1
cmp eax, 3
je 0x100160f1
cmp eax, 5
jne 0x10016495
inc eax
push eax
push ecx
call fcn.1001a040
mov ecx, dword [ebp]
mov ebx, eax
inc ecx
mov dword [esp + 0x3c], ebx
push ecx
push esi
call fcn.1001a040
add esp, 0x10
mov edx, eax
test ebx, ebx
je 0x10016491
test edx, edx
je 0x1001643f
mov edi, dword [edx]
xor eax, eax
mov eax, edi
mov dword [esp + 0x30], 1
mov ecx, eax
mov dword [esp + 0x2c], 0
sub ecx, 2
je 0x100161e3
sub ecx, 2
je 0x100161e3
sub ecx, 2
je 0x100161e3
cmp eax, 0x35
jle 0x100161e8
xor esi, esi
mov ecx, dword [ebx + 4]
test cl, 1
je 0x1001616a
and ecx, 0xfffffffe
add ecx, ebx
mov eax, dword [edx + 4]
test al, 1
je 0x10016176
and eax, 0xfffffffe
add eax, edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x34]
push edx
push 0
push 0
push ecx
push eax
push esi
push edi
call fcn.10015d20
add esp, 0x20
test eax, eax
je 0x10016634
mov eax, dword [ebp + 4]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test al, 1
je 0x100161aa
and eax, 0xfffffffe
add eax, ebp
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], eax
test bl, 1
je 0x100161bd
and ebx, 0xfffffffe
add ebx, dword [esp + 0x34]
mov ebp, ecx
nop
test eax, eax
jne 0x100161cc
test ebx, ebx
je 0x100162f3
mov edi, 0x7fffffff
cmp ecx, dword [esp + 0x30]
jne 0x1001621d
mov edi, 1
mov esi, 0x1001b210
jmp 0x10016222
mov eax, 0x22
shl eax, 4
cmp dword [eax + 0x1004f084], 0
je 0x1001615b
cmp dword [eax + 0x1004f088], 0xffffffff
je 0x1001615b
cmp dword [eax + 0x1004f08c], 0xffffffff
je 0x1001615b
lea esi, [eax + 0x1004f080]
jmp 0x1001615d
mov esi, 0x1001aea0
mov dword [esp + 0x1c], esi
test eax, eax
je 0x10016263
mov esi, dword [eax + 0x18]
add eax, 8
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1001aa60
add esp, 8
movups xmm0, xmmword [eax]
push esi
mov esi, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
push dword [esp + 0x40]
movups xmmword [ecx], xmm0
call esi
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x1001629f
cmp edi, 0x7fffffff
jne 0x10016272
mov edi, dword [ebx + 0x18]
lea eax, [ebx + 8]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.1001aa60
add esp, 8
movups xmm0, xmmword [eax]
push edi
sub esp, 0x10
mov ecx, esp
push ebp
movups xmmword [ecx], xmm0
call esi
mov ecx, dword [esp + 0x30]
mov ebp, eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
inc ecx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x100162c2
mov ecx, dword [eax]
test cl, 1
je 0x100162ba
and ecx, 0xfffffffe
add eax, ecx
mov ecx, dword [esp + 0x18]
jmp 0x100162c4
mov eax, ecx
mov ecx, dword [esp + 0x18]
jmp 0x100162c4
xor eax, eax
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x100162ec
mov ecx, dword [ebx]
test cl, 1
je 0x100162e1
and ecx, 0xfffffffe
add ebx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x100161c0
mov ebx, ecx
mov ecx, dword [esp + 0x18]
jmp 0x100161c0
xor ebx, ebx
jmp 0x100161c0
mov ebx, dword [esp + 0x20]
push 0
push dword [esp + 0x30]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x44]
push dword [ebp]
push ebx
call fcn.1001a370
mov eax, dword [esp + 0x2c]
push 0
push eax
mov eax, dword [esp + 0x4c]
push dword [eax]
push ebx
call fcn.1001a370
add esp, 0x20
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, dword [ebp]
jl 0x100160b0
xor edi, edi
cmp dword [esi], edi
jle 0x1001639a
mov eax, dword [esi + 8]
lea esi, [eax + edi*8]
add esi, dword [esp + 0x10]
push dword [esi]
push ebp
call fcn.1001a040
add esp, 8
test eax, eax
jne 0x10016391
mov eax, dword [esi]
cmp eax, 2
je 0x10016391
cmp eax, 4
je 0x10016391
cmp eax, 6
je 0x10016391
mov eax, dword [esi + 4]
test al, 1
je 0x1001637a
and eax, 0xfffffffe
add eax, esi
push 0
push eax
call fcn.1001b000
add esp, 4
push eax
push dword [esi]
push ebx
call fcn.1001a370
add esp, 0x10
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [esi]
jl 0x10016344
cmp dword [esp + 0x28], 0
je 0x10016414
cmp dword [esp + 0x84], 0
je 0x10016414
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
push 0x31
push ebx
call fcn.1001a180
add esp, 0x10
test eax, eax
jne 0x100163f1
lea eax, [esp + 0x78]
push 0x2c
push eax
call fcn.1001bdf0
push dword [esp + 0x2c]
lea eax, [esp + 0x84]
push eax
call fcn.1001c030
push 0x31
push ebx
call fcn.10019fc0
add esp, 0x18
lea eax, [esp + 0x78]
push eax
call fcn.1001bfd0
push eax
push 0x31
push ebx
call fcn.10019e40
lea eax, [esp + 0x88]
push eax
call fcn.1001bf20
add esp, 0x14
push 1
push esi
push ebx
push dword [esp + 0x50]
call sym.fontconfig.dll_FcConfigSubstituteWithPat
add esp, 0x10
mov eax, ebx
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10023cd9
add esp, 0x140
ret
mov eax, dword [ebp + 4]
test al, 1
je 0x1001644b
and eax, 0xfffffffe
add eax, ebp
push eax
call fcn.1001b000
mov ecx, dword [ebx + 4]
add esp, 4
mov edi, eax
test cl, 1
je 0x10016463
and ecx, 0xfffffffe
add ecx, ebx
push ecx
call fcn.1001b000
push 0
push edi
push dword [ebp]
mov esi, eax
push dword [esp + 0x30]
call fcn.1001a370
push 0
push esi
push dword [ebx]
mov ebx, dword [esp + 0x40]
push ebx
call fcn.1001a370
add esp, 0x24
jmp 0x10016324
mov ebx, dword [esp + 0x20]
push dword [ebp]
push esi
call fcn.1001a040
mov edx, eax
add esp, 8
test edx, edx
je 0x1001660b
mov esi, dword [edx]
cmp esi, 0x35
jg 0x100164da
mov ecx, esi
shl ecx, 4
cmp dword [ecx + 0x1004f084], 0
je 0x100164da
cmp dword [ecx + 0x1004f088], 0xffffffff
je 0x100164da
cmp dword [ecx + 0x1004f08c], 0xffffffff
je 0x100164da
lea edi, [ecx + 0x1004f080]
jmp 0x100164dc
xor edi, edi
mov ecx, dword [ebp + 4]
test cl, 1
je 0x100164e9
and ecx, 0xfffffffe
add ecx, ebp
mov eax, dword [edx + 4]
test al, 1
je 0x100164f5
and eax, 0xfffffffe
add eax, edx
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea edx, [esp + 0x54]
push edx
push ecx
push eax
push edi
push esi
call fcn.10015d20
add esp, 0x20
test eax, eax
je 0x10016634
movups xmm0, xmmword [esp + 0x48]
push 0
sub esp, 0x10
mov eax, esp
push dword [ebp]
movups xmmword [eax], xmm0
push ebx
call fcn.10019c90
add esp, 0x1c
cmp dword [esp + 0x28], 0
je 0x10016324
mov eax, dword [ebp + 4]
test al, 1
je 0x10016549
and eax, 0xfffffffe
add eax, ebp
cmp dword [eax + 8], 9
jne 0x10016324
mov eax, dword [ebp]
cmp eax, 8
je 0x10016569
cmp eax, 9
je 0x10016569
cmp eax, 0xa
jne 0x10016324
cmp dword [esp + 0x84], 0
mov esi, 0x1004f3f8
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0x3c], xmm0
je 0x10016599
lea eax, [esp + 0x78]
push 0x2c
push eax
call fcn.1001bdf0
movsd xmm0, qword [esp + 0x44]
add esp, 8
mov eax, dword [ebp]
sub eax, 8
je 0x100165b9
sub eax, 1
je 0x100165b2
sub eax, 1
jne 0x100165d3
mov esi, str.opsz
jmp 0x100165d3
mov esi, str.wdth
jmp 0x100165d3
cvttsd2si eax, xmm0
mov esi, str.wght
push eax
call sym.fontconfig.dll_FcWeightToOpenType
add esp, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
sub esp, 8
lea eax, [esp + 0xd4]
movsd qword [esp], xmm0
push esi
push str._4s_g
push eax
call fcn.10017200
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.1001c030
add esp, 0x1c
jmp 0x10016324
mov eax, dword [ebp + 4]
test al, 1
je 0x10016617
and eax, 0xfffffffe
add eax, ebp
push 1
push eax
call fcn.1001b000
add esp, 4
push eax
push dword [ebp]
push ebx
call fcn.1001a370
add esp, 0x10
jmp 0x10016328
push dword [esp + 0x20]
call sym.fontconfig.dll_FcPatternDestroy
add esp, 4
xor eax, eax
jmp 0x10016426