Function at 0x462840
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d7c88
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
push edi
je 0x462884
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x44a7c0
push ecx
push 8
push eax
call fcn.004a3148
push edi
call sub.gdiplus.dll_GdipFree
mov dword [esi + 4], ebp
mov eax, dword [esi]
push eax
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call fcn.00462a60
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebp
je 0x462a21
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462a1d
lea eax, [esp + 0x20]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
push edx
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov edi, dword [esp + 0x14]
cmp edi, ebp
mov dword [esp + 0x24], eax
jg 0x462930
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], vtable.Gdiplus::FontCollection.0
jmp 0x462a29
xor ecx, ecx
mov eax, edi
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 sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 2
je 0x46297b
push 0x44a7c0
push 0x462ce0
push edi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], edi
call fcn.004a3085
jmp 0x46297d
xor ebx, ebx
cmp ebx, ebp
mov byte [esp + 0x30], 1
mov dword [esi + 4], ebx
je 0x4629e7
lea ecx, [esp + 0x18]
push ecx
push ebx
mov eax, edi
lea ecx, [esp + 0x24]
call fcn.00462cf0
test eax, eax
jne 0x4629e2
mov eax, dword [esp + 0x18]
cmp eax, ebp
jle 0x4629e2
lea edx, [esp + 0x20]
push edx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esp + 0x20], vtable.Gdiplus::PrivateFontCollection.0
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], vtable.Gdiplus::FontCollection.0
call fcn.00403580
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
call fcn.004625d0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], vtable.Gdiplus::PrivateFontCollection.0
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], vtable.Gdiplus::FontCollection.0
call fcn.00403580
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462a45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret