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

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x94]
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
push ebp
push esi
push edi
cmp ebx, 2
ja 0x10007983
mov edi, dword [esp + 0x94]
test edi, edi
jne 0x10007990
call fcn.10008b60
xor ecx, ecx
mov ebp, 0x1005cfb0
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, eax
mov dword [esp + 0x94], edi
mov edx, 0x1005cfb4
test edi, edi
jne 0x10007968
nop dword [eax]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
push eax
call esi
call sym.fontconfig.dll_FcInitLoadConfigAndFonts
mov ebx, eax
mov dword [esp + 0x94], ebx
test ebx, ebx
je 0x10007938
call fcn.10008b60
mov ecx, ebx
xor eax, eax
lock cmpxchg dword [ebp], ecx
test eax, eax
je 0x10007955
push ebx
call sym.fontconfig.dll_FcConfigDestroy
add esp, 4
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebp], ecx
mov edi, eax
mov edx, 0x1005cfb4
mov dword [esp + 0x94], edi
test edi, edi
je 0x10007900
jmp 0x1000795c
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0xa0]
mov edx, 0x1005cfb4
mov ecx, 1
lea eax, [edi + 0x4c]
lock xadd dword [eax], ecx
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
push eax
call esi
test edi, edi
jne 0x1000799c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ecx, 1
lea eax, [edi + 0x4c]
lock xadd dword [eax], ecx
mov ebp, dword [esp + 0x98]
lea eax, [ebx*4 + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + edi]
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x10007af2
call sym.fontconfig.dll_FcGetDefaultLangs
mov esi, eax
test esi, esi
je 0x10007ac3
push esi
call sym.fontconfig.dll_FcStrListCreate
mov edi, eax
mov dword [esp + 0x24], edi
call sym.fontconfig.dll_FcLangSetCreate
mov ebx, eax
push 0x1004387c
push ebx
mov dword [esp + 0x1c], ebx
call sym.fontconfig.dll_FcLangSetAdd
push esi
call sym.fontconfig.dll_FcStrSetDestroy
add esp, 0x10
test edi, edi
je 0x10007aad
nop
push edi
call sym.fontconfig.dll_FcStrListNext
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x10007aa9
push 0x22
push ebp
call fcn.1001a040
add esp, 8
test eax, eax
je 0x10007b70
mov ebx, dword [eax + 4]
test bl, 1
je 0x10007a37
and ebx, 0xfffffffe
add ebx, eax
test ebx, ebx
je 0x10007b70
nop
lea eax, [ebx + 8]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1001aa60
add esp, 8
movups xmm0, xmmword [eax]
movd eax, xmm0
movups xmmword [esp + 0x38], xmm0
cmp eax, 8
jne 0x10007b25
call sym.fontconfig.dll_FcLangSetCreate
mov edi, eax
push esi
push edi
call sym.fontconfig.dll_FcLangSetAdd
push edi
push dword [esp + 0x4c]
call sym.fontconfig.dll_FcLangSetContains
push edi
mov esi, eax
call sym.fontconfig.dll_FcLangSetDestroy
add esp, 0x14
test esi, esi
jne 0x10007aa5
push dword [esp + 0x10]
push dword [esp + 0x44]
call sym.fontconfig.dll_FcLangSetContains
add esp, 8
test eax, eax
je 0x10007b51
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
push edi
call sym.fontconfig.dll_FcStrListDone
push ebx
call sym.fontconfig.dll_FcLangSetDestroy
mov edi, dword [esp + 0x9c]
add esp, 8
lea eax, [esp + 0x80]
push eax
push 0
push 0x2c
push ebp
call fcn.1001a070
add esp, 0x10
cmp eax, 1
jne 0x10007af2
call fcn.1000c970
test eax, eax
je 0x10007af2
push eax
push 0x2c
push ebp
call fcn.10019e40
add esp, 0xc
mov edx, dword [edi + 0x20]
add edx, 0x37
mov dword [esp + 0x20], edx
lea esi, [edx*4]
push esi
mov dword [esp + 0x2c], esi
call fcn.100274ed
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x10007ba0
xor ebp, ebp
jmp 0x1000821b
push esi
mov esi, dword [esp + 0x44]
push esi
call sym.fontconfig.dll_FcStrCmpIgnoreCase
add esp, 8
test eax, eax
je 0x10007aa5
push 0x1004387c
push esi
call sym.fontconfig.dll_FcStrCmpIgnoreCase
add esp, 8
test eax, eax
je 0x10007aa5
mov eax, dword [ebx]
test al, 1
je 0x10007b5e
and eax, 0xfffffffe
add ebx, eax
jmp 0x10007b60
mov ebx, eax
mov esi, dword [esp + 0x28]
test ebx, ebx
jne 0x10007a40
mov edi, dword [esp + 0x20]
push 1
push 0
sub esp, 0x10
mov dword [esp + 0x78], 3
mov eax, esp
mov dword [esp + 0x80], esi
movups xmm0, xmmword [esp + 0x78]
push 0x22
push ebp
movups xmmword [eax], xmm0
call fcn.10019e90
add esp, 0x20
jmp 0x10007a00
push esi
call fcn.100274ed
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10007bb8
xor ebp, ebp
jmp 0x1000821b
push esi
call fcn.100274ed
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x10007bd2
xor ebp, ebp
jmp 0x10008214
test byte [0x1005dec4], 4
je 0x10007bee
push 0x10043880
call fcn.10003b90
push ebp
call sym.fontconfig.dll_FcPatternPrint
add esp, 8
push fcn.100274d2
push fcn.100274d2
push 0
push 0x10008b40
push fcn.1001c710
push 0x1001cee0
call fcn.10012280
push fcn.100274d2
push fcn.100274d2
push 0
push 0x10008b40
push sym.fontconfig.dll_FcStrCmpIgnoreCase
push fcn.1001cf90
mov dword [esp + 0x68], eax
call fcn.10012280
push 1
push ebp
mov dword [esp + 0x74], eax
call fcn.1001a040
add esp, 0x38
test eax, eax
je 0x10007c60
mov ecx, dword [eax + 4]
test cl, 1
je 0x10007c52
and ecx, 0xfffffffe
add ecx, eax
push ecx
lea eax, [esp + 0x3c]
push eax
call fcn.10003be0
add esp, 8
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
push esi
call fcn.1001b420
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.1001b480
add esp, 0x10
test eax, eax
je 0x100081f3
lea eax, [esp + 0x54]
push eax
push esi
call fcn.1001b400
add esp, 8
mov esi, eax
test byte [0x1005dec4], 4
je 0x10007cae
push dword [esi + 4]
push str._nRule_Set:__s_n
call fcn.10003b90
add esp, 8
add esi, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x38], esi
push dword [esi]
call fcn.1001b420
lea eax, [esp + 0x50]
push eax
push dword [esi]
call fcn.1001b480
add esp, 0x10
test eax, eax
je 0x100081ce
nop dword [eax]
lea eax, [esp + 0x48]
push eax
push dword [esi]
call fcn.1001b400
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x20]
xor ecx, ecx
test eax, eax
jle 0x10007de2
cmp eax, 4
jb 0x10007dad
lea edx, [eax*4]
lea eax, [edx - 4]
add eax, edi
lea edi, [edx - 4]
add edi, ebx
cmp dword [esp + 0x1c], edi
ja 0x10007d27
cmp eax, ebx
jae 0x10007dad
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add ebx, 0xfffffffc
add edx, ebx
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x1c], edx
ja 0x10007d44
cmp eax, dword [esp + 0x18]
jae 0x10007dad
cmp ebx, edx
ja 0x10007d4e
cmp edi, dword [esp + 0x18]
jae 0x10007dad
mov edx, dword [esp + 0x20]
mov eax, edx
and eax, 0x80000003
jns 0x10007d60
dec eax
or eax, 0xfffffffc
inc eax
sub edx, eax
add ecx, 4
mov ebx, ecx
cmp ecx, edx
jl 0x10007d62
mov edi, dword [esp + 0x18]
lea eax, [edx + 3]
cdq
and edx, 3
add edx, eax
xor eax, eax
sar edx, 2
shl edx, 4
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
shr edx, 2
mov ecx, edx
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, ebx
cmp ebx, edx
jge 0x10007de2
mov ebx, dword [esp + 0x10]
jmp 0x10007db1
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
lea eax, [ebx + ecx*4]
sub edi, ebx
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esp + 0x10]
sub edx, ecx
mov dword [edi + eax], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0
mov dword [ebx + eax - 4], 0
sub edx, 1
jne 0x10007dc4
test esi, esi
je 0x10008198
nop word [eax + eax]
mov eax, dword [esi + 4]
sub eax, 1
je 0x10008079
sub eax, 1
jne 0x10008297
mov eax, dword [esi + 8]
mov ebx, dword [eax]
and ebx, 0xfffffbff
test byte [0x1005dec4], 4
je 0x10007e38
push str.Substitute
call fcn.10003b90
push dword [esi + 8]
call fcn.1000ad30
push 0x100438d8
call fcn.10003b90
add esp, 0xc
mov eax, dword [esi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [esp + 0xa8]
push dword [esp + 0xa8]
push ebp
call fcn.10008550
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x10007e89
cmp dword [eax], 1
je 0x10007e74
cmp dword [esp + 0xa0], 0
jne 0x10007e89
push dword [eax + 8]
push ebp
call fcn.1001a040
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [edx + ebx*4], eax
jmp 0x10007e8d
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 8]
movzx eax, word [ecx + 4]
add eax, 0xfffffff5
cmp eax, 7
ja case.default.0x10007ea0
jmp dword [eax*4 + 0x100082a8]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x30], eax
test eax, eax
je case.0x10007ea0.12
push dword [esp + 0x14]
push dword [ecx]
push edi
push 1
push eax
mov eax, dword [edx + ebx*4]
add eax, 4
push eax
call fcn.10003d10
push dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ebx
push dword [esp + 0x50]
mov eax, dword [eax + ebx*4]
add eax, 4
push eax
call fcn.10004f80
mov eax, dword [esp + 0x38]
add esp, 0x28
mov dword [eax + ebx*4], edi
jmp 0x10008031
push dword [esp + 0x14]
push dword [ecx]
push ebp
call fcn.10006fe0
add esp, 0xc
test edi, edi
je 0x10007f37
mov eax, dword [esi + 8]
mov eax, dword [eax]
push eax
push ebp
mov dword [esp + 0x38], eax
call fcn.1001a260
add esp, 8
test eax, eax
je 0x10007f37
push dword [esp + 0x14]
add eax, 4
push dword [esp + 0x34]
push edi
push 1
push 0
push eax
call fcn.10003d10
add esp, 0x18
mov eax, dword [esp + 0x10]
mov dword [eax + ebx*4], 0
jmp 0x10008031
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
je case.0x10007ea0.13
push dword [esp + 0x14]
push dword [ecx]
push edi
push 0
push eax
mov eax, dword [edx + ebx*4]
add eax, 4
push eax
call fcn.10003d10
add esp, 0x18
jmp 0x10008031
test edi, edi
je 0x10008031
mov ebx, dword [ecx]
push ebx
push ebp
call fcn.1001a260
add esp, 8
test eax, eax
je 0x10008031
push dword [esp + 0x14]
add eax, 4
push ebx
push edi
push 0
push 0
push eax
call fcn.10003d10
add esp, 0x18
jmp 0x10008031
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
je case.0x10007ea0.16
push dword [esp + 0x14]
push dword [ecx]
push edi
push 1
jmp 0x10007f5b
test edi, edi
je 0x10008031
mov ebx, dword [ecx]
push ebx
push ebp
call fcn.1001a260
add esp, 8
test eax, eax
je 0x10008031
push dword [esp + 0x14]
add eax, 4
push ebx
push edi
push 1
push 0
push eax
call fcn.10003d10
add esp, 0x18
jmp 0x10008031
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebx*4]
test eax, eax
je case.0x10007ea0.18
push dword [esp + 0x14]
push ebx
push eax
mov eax, dword [edx + ebx*4]
add eax, 4
push eax
call fcn.10004f80
push edi
call fcn.1001af50
add esp, 0x14
jmp 0x10008031
push dword [esp + 0x14]
push dword [ecx]
push ebp
call fcn.10006fe0
push edi
call fcn.1001af50
add esp, 0x10
jmp 0x10008031
push edi
call fcn.1001af50
add esp, 4
mov eax, dword [esi + 8]
mov edi, dword [eax]
push edi
push ebp
call fcn.1001a040
add esp, 8
test eax, eax
je 0x10008054
cmp dword [eax + 4], 0
jne 0x10008054
push edi
push ebp
call fcn.10019fc0
add esp, 8
test byte [0x1005dec4], 4
je 0x10008297
push str.FcConfigSubstitute_edit
call fcn.10003b90
push ebp
call sym.fontconfig.dll_FcPatternPrint
add esp, 8
jmp 0x10008297
mov eax, dword [esi + 8]
mov ebp, dword [eax + 8]
and ebp, 0xfffffbff
test byte [0x1005dec4], 4
je 0x100080a3
push str.FcConfigSubstitute_test
call fcn.10003b90
push dword [esi + 8]
call fcn.1000bbb0
add esp, 8
mov ecx, dword [esp + 0xa0]
cmp ecx, 1
jne 0x100080c8
mov eax, dword [esi + 8]
cmp dword [eax], 0
jne 0x100080c8
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x14], 0
jmp 0x100080d7
mov ebx, dword [esp + 0x98]
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x100080f5
mov eax, dword [esi + 8]
push dword [eax + 8]
push ebx
call fcn.1001a040
mov ecx, dword [esp + 0xa8]
add esp, 8
mov edi, eax
jmp 0x100080f7
xor edi, edi
mov edx, dword [esp + 0x18]
cmp dword [edx + ebp*4], 0
jne 0x10008115
mov eax, dword [esi + 8]
cmp ecx, dword [eax]
jne 0x10008115
mov dword [edx + ebp*4], edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov dword [edx + ebp*4], eax
test edi, edi
jne 0x1000812e
mov eax, dword [esi + 8]
cmp dword [eax + 4], 1
jne 0x10008182
mov eax, dword [esp + 0x10]
mov dword [eax + ebp*4], edi
jmp 0x10008290
push dword [esp + 0x14]
push dword [edi + 4]
push dword [esi + 8]
push ecx
push dword [esp + 0xac]
push ebx
call fcn.10006d90
mov ebx, dword [esp + 0x28]
add esp, 0x18
mov edx, eax
cmp dword [ebx + ebp*4], 0
jne 0x10008166
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0xa0]
cmp eax, dword [ecx]
jne 0x10008166
mov dword [ebx + ebp*4], edx
test edx, edx
je 0x10008182
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x10008282
cmp edx, dword [edi + 4]
je 0x10008290
test byte [0x1005dec4], 4
je 0x10008198
push str.No_match_n
call fcn.10003b90
add esp, 4
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
push dword [esi]
call fcn.1001b4a0
lea eax, [esp + 0x50]
push eax
push dword [esi]
call fcn.1001b480
mov ebp, dword [esp + 0xa8]
add esp, 0x10
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x10007ce0
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
push esi
call fcn.1001b4a0
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.1001b480
add esp, 0x10
test eax, eax
jne 0x10007c85
test byte [0x1005dec4], 4
je 0x1000820f
push str.FcConfigSubstitute_done
call fcn.10003b90
push ebp
call sym.fontconfig.dll_FcPatternPrint
add esp, 8
mov ebp, 1
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1000822c
push eax
call fcn.100122f0
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1000823d
push eax
call fcn.100122f0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000824e
push eax
call fcn.100274d2
add esp, 4
test ebx, ebx
je 0x1000825b
push ebx
call fcn.100274d2
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000826c
push eax
call fcn.100274d2
add esp, 4
push edi
call sym.fontconfig.dll_FcConfigDestroy
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
cmp eax, 3
jne 0x10008290
cmp edx, dword [edi + 4]
je 0x10008182
mov ebp, dword [esp + 0x98]
mov esi, dword [esi]
test esi, esi
jne 0x10007df0
jmp 0x10008198