Function at 0x433c70
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b4998
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
je 0x433cbf
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x407c30
push ecx
push 8
push eax
call fcn.00495745
push edi
call sub.gdiplus.dll_GdipFree
mov dword [esi + 4], ebp
mov eax, dword [esi]
push eax
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call fcn.00433ea0
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
je 0x433e5e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x433e5a
lea eax, [esp + 0x28]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push ecx
push edx
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov edi, dword [esp + 0x1c]
cmp edi, ebp
mov dword [esp + 0x2c], eax
jg 0x433d6b
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], vtable.Gdiplus::FontCollection.0
jmp 0x433e66
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 + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x38], 2
je 0x433db6
push 0x407c30
push 0x4336b0
push edi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], edi
call fcn.00498c4e
jmp 0x433db8
xor ebx, ebx
cmp ebx, ebp
mov byte [esp + 0x38], 1
mov dword [esi + 4], ebx
je 0x433e23
lea ecx, [esp + 0x20]
push ecx
push ebx
mov eax, edi
lea ecx, [esp + 0x2c]
call fcn.004335a0
test eax, eax
jne 0x433e1e
mov eax, dword [esp + 0x20]
cmp eax, ebp
jle 0x433e1e
lea edx, [esp + 0x28]
push edx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esp + 0x28], vtable.Gdiplus::PrivateFontCollection.0
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], vtable.Gdiplus::FontCollection.0
call fcn.00401850
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call fcn.00433c30
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x28], vtable.Gdiplus::PrivateFontCollection.0
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], vtable.Gdiplus::FontCollection.0
call fcn.00401850
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433e82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret