Function at 0x415350
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a97db
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
je 0x41539f
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x402dd0
push ecx
push 8
push eax
call fcn.0048e6c4
push edi
call sub.gdiplus.dll_GdipFree
mov dword [esi + 4], ebp
mov eax, dword [esi]
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call fcn.00414c20
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebp
mov dword [esp + 0x34], ebp
je 0x415541
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41553d
lea eax, [esp + 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push edx
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov edi, dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x28], eax
jg 0x41545c
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], vtable.Gdiplus::FontCollection.0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x415559
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 + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x34], 2
je 0x4154a7
push 0x402dd0
push fcn.0040fdb0
push edi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], edi
call fcn.0048e90a
jmp 0x4154a9
xor ebx, ebx
cmp ebx, ebp
mov byte [esp + 0x34], 1
mov dword [esi + 4], ebx
jne 0x4154ec
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x24], vtable.Gdiplus::PrivateFontCollection.0
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], vtable.Gdiplus::FontCollection.0
call fcn.00404930
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
lea ecx, [esp + 0x2c]
call fcn.004100e0
test eax, eax
jne 0x415534
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jle 0x415534
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x20]
call fcn.0040fd90
lea ecx, [esp + 0x14]
call fcn.00404930
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, esi
call fcn.004101d0
jmp 0x41550e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret