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

Disassembly:
mov eax, 0x4872b6
call fcn.004854e4
sub esp, 0x478
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
jne 0x4343fa
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.00458270
add esp, 0xc
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp + 8]
call fcn.004258d5
pop ecx
pop ecx
test eax, eax
jne 0x4343e9
push 0x206
mov word [ebp - 0x37c], ax
lea eax, [ebp - 0x37a]
push ebx
push eax
call fcn.00458270
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x37c]
mov ecx, eax
add esp, 0xc
mov esi, 0x104
sub edx, ecx
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x434477
movzx ecx, word [edx + eax]
cmp cx, bx
je 0x434477
mov word [eax], cx
inc eax
inc eax
dec esi
jne 0x43445c
cmp esi, ebx
jne 0x43447d
dec eax
dec eax
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x170], eax
push 3
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x170]
call fcn.004044f0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x170]
push eax
call fcn.004030f0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x170], eax
je 0x4344df
push dword [ebp - 0x170]
call fcn.00451fa8
pop ecx
mov edi, 0x498048
xor ecx, ecx
mov edx, edi
lea esi, [ebp - 0x14]
call fcn.00403500
test eax, eax
jl 0x434502
push 0x4944dc
push edi
mov eax, esi
push eax
call fcn.004032c0
push dword [ebp - 0x14]
lea esi, [ebp - 0x37c]
call fcn.0040c410
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x434552
movzx eax, word [ebp + eax*2 - 0x37e]
cmp ax, 0x5c
je 0x434531
cmp ax, 0x2f
jne 0x434552
push ebx
lea eax, [ebp - 0x37c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x14]
call fcn.004031a0
mov eax, ebx
jmp 0x4343eb
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x37c]
call fcn.004030f0
push 0x4988a8
mov ecx, 0x104
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00403b60
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x434596
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004031a0
cmp dword [ebp - 0x50], ebx
jl 0x434543
push ebx
push 0x80
push 2
lea eax, [ebp - 0x37c]
push ebx
jne 0x4345d4
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 0x434543
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4345f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x434543
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.00425b2d
test eax, eax
jne 0x43463e
push 0x8000
call fcn.004520c5
pop ecx
mov edi, eax
jmp 0x434620
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
push edi
call fcn.00425c26
cmp eax, ebx
pop ecx
jg 0x434612
jne 0x434637
mov dword [ebp - 0x18], 1
push edi
call fcn.00451fa8
pop ecx
mov edi, dword [ebp + 8]
call fcn.00425d9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
jmp 0x434543