Function at 0x46ab0f
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
mov eax, 0x5240f6
call fcn.0051f0b4
sub esp, 0x478
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
jne 0x46ab3a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 0x105
lea eax, [ebp - 0x483]
push ebx
push eax
mov byte [ebp - 0x484], bl
call fcn.004ee670
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov eax, dword [ebp + 8]
call fcn.0046ba2c
add esp, 0x10
test eax, eax
jne 0x46ab29
push 0x206
mov word [ebp - 0x37c], ax
lea eax, [ebp - 0x37a]
push ebx
push eax
call fcn.004ee670
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x37c]
push eax
mov ecx, esi
call fcn.00411555
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x170], eax
push ebx
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x170]
call fcn.0041e7f1
mov dword [ebp - 4], ebx
push dword [ebp - 0x170]
lea ecx, [ebp - 0x14]
call fcn.00401f01
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x170], eax
je 0x46abfe
push dword [ebp - 0x170]
call fcn.004ea208
pop ecx
push ebx
mov edi, 0x537294
push edi
lea ecx, [ebp - 0x14]
call fcn.00401542
test eax, eax
jl 0x46ac1f
push 0x53f8bc
push edi
lea ecx, [ebp - 0x14]
call fcn.0040476b
push dword [ebp - 0x14]
lea eax, [ebp - 0x37c]
call fcn.00464c34
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x46ac7a
movzx eax, word [ebp + eax*2 - 0x37e]
cmp ax, 0x5c
je 0x46ac52
cmp ax, 0x2f
jne 0x46ac7a
push ebx
lea eax, [ebp - 0x37c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040297c
mov eax, ebx
jmp 0x46ab2b
lea eax, [ebp - 0x37c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401f01
push 0x543c50
push esi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00401db6
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46acba
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040297c
cmp dword [ebp - 0x50], ebx
jl 0x46ac64
push ebx
push 0x80
push 2
lea eax, [ebp - 0x37c]
push ebx
jne 0x46acfb
xor ebx, ebx
inc ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46ac64
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ad1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46ac64
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.0046bee1
pop ecx
test eax, eax
jne 0x46ad67
push 0x8000
call fcn.004eae7a
pop ecx
mov edi, eax
jmp 0x46ad48
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebp + 8]
call fcn.0046c01f
cmp eax, ebx
pop ecx
pop ecx
jg 0x46ad3a
jne 0x46ad60
mov dword [ebp - 0x18], 1
push edi
call fcn.004ea208
pop ecx
mov edi, dword [ebp + 8]
call fcn.0046c244
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
jmp 0x46ac64