Function at 0x426be0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d291d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 4]
test eax, eax
je 0x426c42
push 0x405a30
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 8
push eax
call fcn.00483d33
push esi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], 0
push dword [edi]
lea eax, [ebp - 0x14]
mov dword [edi + 8], 0
push eax
mov ecx, edi
mov dword [edi + 0xc], 0
call fcn.00426e50
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x426e14
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x426e11
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.gdiplus.dll_GdipNewPrivateFontCollection]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call dword [sym.imp.gdiplus.dll_GdipPrivateAddFontFile]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.gdiplus.dll_GdipGetFontCollectionFamilyCount]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
test ebx, ebx
jle 0x426df9
xor ecx, ecx
mov eax, ebx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x426d1d
push 0x405a30
push 0x424b00
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 8
push esi
call fcn.004842a4
jmp 0x426d1f
xor esi, esi
mov byte [ebp - 4], 2
mov dword [edi + 4], esi
test esi, esi
je 0x426df9
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048409e
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.gdiplus.dll_GdipGetFontCollectionFamilyList]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x426d9c
cmp dword [ebp - 0x10], ebx
jle 0x426d99
mov edi, dword [ebp - 0x18]
nop dword [eax]
push esi
push dword [edi + ebx*4]
call dword [sym.imp.gdiplus.dll_GdipCloneFontFamily]
inc ebx
add esi, 8
cmp ebx, dword [ebp - 0x10]
jl 0x426d70
push dword [ebp - 0x18]
call fcn.00484099
mov eax, dword [ebp - 0x20]
add esp, 4
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x426dae
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00484099
add esp, 4
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x426dc0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jle 0x426dc0
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
jmp 0x426df9
mov eax, dword [edi + 4]
test eax, eax
je 0x426deb
push 0x405a30
lea esi, [eax - 4]
mov byte [ebp - 4], 4
push dword [esi]
push 8
push eax
call fcn.00483d33
push esi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.Gdiplus::PrivateFontCollection.0
push eax
call dword [sym.imp.gdiplus.dll_GdipDeletePrivateFontCollection]
mov dword [ebp - 0x30], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426e33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret