Function at 0x408c3b
Capabilities:
Check if file exists
Copy file
Create directory
Get disk information
Get disk size
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [ebp + 8]
add eax, 1
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040bd10
add esp, 8
push 0x423490
lea edx, [ebp - 0x104]
push edx
call fcn.0040c940
add esp, 4
lea eax, [ebp + eax - 0x105]
push eax
call fcn.0040d450
add esp, 8
test eax, eax
jne 0x408cce
push 0x104
lea ecx, [ebp - 0x30c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x104]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x30c]
push eax
call fcn.00409d08
add esp, 4
push 0
push 0x427ce8
push 0x423494
call fcn.004045ed
add esp, 0xc
mov eax, 1
jmp 0x408ef6
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040c940
add esp, 4
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x830], 1
jmp 0x408cfe
mov edx, dword [ebp - 0x830]
add edx, 1
mov dword [ebp - 0x830], edx
lea eax, [ebp - 0x104]
push eax
call fcn.0040c940
add esp, 4
cmp dword [ebp - 0x830], eax
jge 0x408d32
mov ecx, dword [ebp - 0x82c]
sub ecx, dword [ebp - 0x830]
movsx edx, byte [ebp + ecx - 0x104]
cmp edx, 0x5c
jne 0x408d30
jmp 0x408d32
jmp 0x408cef
mov eax, dword [ebp - 0x82c]
lea ecx, [ebp + eax - 0x104]
sub ecx, dword [ebp - 0x830]
push ecx
lea edx, [ebp - 0x410]
push edx
call fcn.0040bd10
add esp, 8
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x104]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408dc0
push 0
push 0x427cec
push str.down_load_inf_not_exist
call fcn.004045ed
add esp, 0xc
xor eax, eax
jmp 0x408ef6
push 0x427464
lea edx, [ebp - 0x828]
push edx
call fcn.0040c8aa
add esp, 8
push 0x4234f8
lea eax, [ebp - 0x828]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0x828]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408e18
push 0
lea edx, [ebp - 0x828]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x423514
lea ecx, [ebp - 0x828]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x828]
push eax
call fcn.0040c880
add esp, 8
push 2
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.0040c39a
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x408e9d
mov dword [ebp - 0xa3c], 0
lea ecx, [ebp - 0xa3c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp dword [ebp - 0xa3c], 0
ja 0x408e9d
xor eax, eax
jmp 0x408ef6
push 0
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x408ed2
push 0
push 0x427cf0
push 0x423518
call fcn.004045ed
add esp, 0xc
mov eax, 1
jmp 0x408ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa40], eax
push 0
push str.failed
lea edx, [ebp - 0xa40]
push edx
call fcn.004045ed
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret