Function at 0x405f00
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x482308]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x324], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov ebx, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x338], edi
push eax
mov dword [ebp - 0x330], 0
call fcn.00447640
add esp, 0xc
lea ecx, [ebp - 0x29c]
call fcn.0041441e
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0041441e
push 1
push 0x1a
lea eax, [ebp - 0x218]
mov dword [ebp - 0x330], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x29c]
push str._smsdnccinstall
push eax
call fcn.00414a20
add esp, 0xc
lea ecx, [ebp - 0x29c]
call fcn.00411afa
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x405fe3
push eax
lea ecx, [ebp - 0x29c]
call fcn.00411afa
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea ecx, [ebp - 0x29c]
call fcn.00411afa
push eax
push str._s_s
push edi
call fcn.00414a20
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x406156
mov ecx, edi
call fcn.00411afa
push eax
call esi
test eax, eax
jne 0x406156
lea ecx, [ebp - 0x320]
call fcn.0041441e
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 2
call fcn.00411afa
push eax
lea eax, [ebp - 0x320]
push str._smsdnccinstall.7z
push eax
call fcn.00414a20
add esp, 0xc
lea ecx, [ebp - 0x320]
call fcn.00411afa
mov ebx, dword [ebp - 0x324]
push 0x47a928
push 0x82
mov dword [ebp - 0x328], eax
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40611c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [ebp - 0x334], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebx, ebx
mov dword [ebp - 0x32c], eax
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x328], eax
cmp eax, 0xffffffff
je 0x406115
push ebx
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x324], ebx
push ecx
push dword [ebp - 0x32c]
push dword [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x32c]
mov ecx, 1
cmp dword [ebp - 0x324], eax
push dword [ebp - 0x328]
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40611c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x29c]
call fcn.00411afa
push eax
lea ecx, [ebp - 0x320]
call fcn.00411afa
push eax
call fcn.004013d0
lea ecx, [ebp - 0x320]
call fcn.00411afa
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x320]
call fcn.00414510
lea ecx, [ebp - 0x29c]
call fcn.00414510
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445e0f
mov esp, ebp
pop ebp
ret 0xc