Function at 0x40543e
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x42a03e
call fcn.00429ddc
sub esp, 0x33c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x12f]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x130], bl
call fcn.00416e30
add esp, 0xc
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x91
call fcn.0040442f
add esp, 0xc
push ebx
mov edi, 0x80
push edi
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [0x43958c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4054ba
xor eax, eax
jmp 0x405789
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x14]
push esi
call dword [0x439588]
push esi
test eax, eax
jne 0x4054dc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4054b3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x20]
call dword [0x439590]
lea eax, [ebp - 0x130]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.Mozilla
mov esi, 0x104
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.004172c8
add esp, 0xc
push ebx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.Extensions
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.004172c8
add esp, 0xc
push ebx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.ec8030f7_c20a_464f_9b0e_13a3a9e97384
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.004172c8
add esp, 0xc
push ebx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x42f274
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.004172c8
add esp, 0xc
push str.textlinks_gamevance.com
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.004172c8
add esp, 0xc
call fcn.00409e1d
test eax, eax
push ebx
lea eax, [ebp - 0x130]
push eax
je 0x4055b4
call fcn.004051aa
jmp 0x4055ba
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x103
lea eax, [ebp - 0x347]
push ebx
push eax
mov byte [ebp - 0xd], bl
mov byte [ebp - 0x348], bl
call fcn.00416e30
add esp, 0xc
push str.gvtlf.dll
lea eax, [ebp - 0x130]
push eax
push str._scomponents_s
lea eax, [ebp - 0x348]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push ebx
push edi
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x348]
push eax
call dword [0x43958c]
cmp eax, 0xffffffff
je 0x405646
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebx
push edi
push 3
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x348]
push eax
call dword [0x43958c]
cmp eax, 0xffffffff
jne 0x405643
mov byte [ebp - 0xd], 1
jmp 0x405646
push eax
call esi
lea esi, [ebp - 0x240]
call fcn.0040973e
push dword [ebp + 8]
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.004097fc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405674
test al, 0x10
je 0x405695
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x130]
push eax
call fcn.00409c82
pop ecx
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x133], bl
mov byte [ebp - 0x132], al
cmp dword [ebp - 0x23c], ebx
jne 0x4056b1
mov byte [ebp - 0xe], bl
jmp 0x4056c6
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x240]
call fcn.004097a9
mov byte [ebp - 0xe], al
lea esi, [ebp - 0x240]
call fcn.00409787
push ebx
push edi
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x405765
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x18], eax
inc eax
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
push esi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x14]
call fcn.00404f73
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0xd], bl
je 0x405778
push 2
pop esi
jmp 0x40577c
movzx esi, byte [ebp - 0xe]
lea ecx, [ebp - 0x240]
call fcn.00409777
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4