Function at 0x43b8e5
Capabilities:
Check if file exists
Create directory
Get file attributes
Read .ini file

Disassembly:
push 0x850
mov eax, 0x515ca6
call fcn.004d8af2
mov esi, edx
mov dword [ebp - 0x83c], esi
mov edi, ecx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x838], edi
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x840]
mov word [ebp - 0x844], ax
mov byte [ebp - 0x842], al
call fcn.0040687a
mov byte [ebp - 4], 2
lea ebx, [esi + 4]
mov al, byte [ebp - 0x844]
mov ecx, ebx
mov byte [esi], al
mov al, byte [ebp - 0x843]
mov byte [esi + 1], al
mov al, byte [ebp - 0x842]
mov byte [esi + 2], al
lea eax, [ebp - 0x840]
push eax
call fcn.00405d6e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x840]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov word [esi], cx
mov byte [esi + 2], cl
cmp dword [eax - 0xc], ecx
je 0x43ba19
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00405d6e
push ecx
mov byte [esi + 2], 1
mov esi, esp
mov dword [ebp - 0x838], esi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x848]
mov edx, ebx
mov dword [esi], eax
call fcn.00428612
pop ecx
mov ecx, dword [ebp - 0x840]
add ecx, 0xfffffff0
call fcn.00407189
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43ba0b
call fcn.00406710
push 0x24
push eax
push ecx
mov ecx, esp
mov edx, str.Could_not_access_cache_path
push ebx
call fcn.004093b4
pop ecx
mov ecx, edi
call fcn.00406620
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00407189
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
jmp 0x43bd14
mov eax, dword [ebp - 0x83c]
mov byte [eax], 1
jmp 0x43bcf6
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ecx
jne 0x43ba2b
mov dword [edi], ecx
mov dword [edi + 4], ecx
jmp 0x43bcfb
push str.NiniteCache
lea edx, [ebp + 8]
lea ecx, [ebp - 0x834]
call fcn.00409442
pop ecx
mov byte [ebp - 4], 3
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43ba87
lea eax, [ebp - 0x834]
mov byte [esi], 1
push eax
mov ecx, ebx
call fcn.00405d6e
xor esi, esi
lea ecx, [edi + 8]
mov dword [edi], esi
mov dword [edi + 4], esi
call fcn.0040687a
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx - 0x10]
call fcn.00407189
jmp 0x43bd03
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx - 0x10]
call fcn.00407189
push str._ninite.ini
lea edx, [ebp + 8]
lea ecx, [ebp - 0x834]
call fcn.00409442
pop ecx
mov byte [ebp - 4], 4
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43bbb8
push 0x820
xor esi, esi
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.004d9f30
add esp, 0xc
lea eax, [ebp - 0x830]
push dword [ebp - 0x834]
push 0x410
push eax
push esi
push str.path
push str.Cache
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x43bb24
push 0x46
push 0x80004005
push ecx
mov ecx, esp
push str.Error_reading_ini_file
call fcn.00406fea
mov ecx, edi
call fcn.00406620
jmp 0x43ba74
lea eax, [ebp - 0x830]
push eax
call fcn.004ddaa2
pop ecx
push eax
lea eax, [ebp - 0x830]
mov ecx, ebx
push eax
call fcn.00406efb
push ecx
mov esi, esp
mov dword [ebp - 0x838], esi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x848]
mov edx, ebx
mov dword [esi], eax
call fcn.00428612
pop ecx
mov ecx, dword [ebp - 0x840]
add ecx, 0xfffffff0
call fcn.00407189
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43bba8
call fcn.00406710
push 0x4f
push eax
push ecx
mov ecx, esp
mov edx, str.Could_not_access_cache_path
push ebx
call fcn.004093b4
pop ecx
jmp 0x43bb18
mov eax, dword [ebp - 0x83c]
mov word [eax], 0x101
jmp 0x43ba67
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx - 0x10]
call fcn.00407189
push str.NiniteDownloads
lea edx, [ebp + 8]
lea ecx, [ebp - 0x838]
call fcn.00409442
mov byte [ebp - 4], 5
lea edx, [ebp - 0x838]
lea ecx, [ebp - 0x834]
mov dword [esp], str._files
call fcn.00409442
pop ecx
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 6
je 0x43bc8e
push ecx
mov esi, esp
mov dword [ebp - 0x84c], esi
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x848]
mov dword [esi], eax
call fcn.00429667
pop ecx
mov ecx, dword [ebp - 0x840]
add ecx, 0xfffffff0
call fcn.00407189
push ecx
mov ecx, esp
mov dword [ebp - 0x84c], esp
push str._InternetShortcut__r_nURLhttp:__ninite.com_cache_readme
call fcn.0040dbb2
push ecx
mov ecx, esp
mov byte [ebp - 4], 7
push str.ReadMe.url
lea edx, [ebp - 0x838]
call fcn.00409442
pop ecx
lea ecx, [ebp - 0x85c]
mov byte [ebp - 4], 6
call fcn.0042a53e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x854]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov esi, dword [ebp - 0x83c]
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43bcd8
lea eax, [ebp - 0x834]
mov byte [esi], 1
push eax
mov ecx, ebx
call fcn.00405d6e
xor esi, esi
lea ecx, [edi + 8]
mov dword [edi], esi
mov dword [edi + 4], esi
call fcn.0040687a
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x838]
jmp 0x43ba7a
mov ecx, dword [ebp - 0x834]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x838]
lea ecx, [ecx - 0x10]
call fcn.00407189
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
lea ecx, [edi + 8]
call fcn.0040687a
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, edi
call fcn.004d8aa1
ret