Function at 0x409f5c
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x41e0bb
call fcn.0040b998
sub esp, 0x17c
mov al, byte [0x42868c]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x188], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x187]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x427530]
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.00401000
push str.__vCopyFileToLocal
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call fcn.004013fd
lea eax, [ebp - 0x188]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x188]
push str._vnDrvBas
push eax
lea eax, [ebp - 0x188]
push 0x425080
push eax
call fcn.0040becd
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
lea eax, [ebp - 0x188]
push ebx
push eax
call esi
test eax, eax
jne 0x409342
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x188]
push eax
push str.CreateDirectory__s_:_u
call fcn.004013fd
add esp, 0xc
lea eax, [ebp - 0x188]
push 0x42a768
push eax
mov edi, str._s_s
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.0040becd
add esp, 0x10
lea eax, [ebp - 0x188]
push ebx
push eax
call esi
test eax, eax
jne 0x40938c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x188]
push eax
push str.CreateDirectory__s_:_u
call fcn.004013fd
add esp, 0xc
cmp byte [0x42a14e], 0
je 0x4093e9
push 0x42a86c
call fcn.0040c0a0
test eax, eax
pop ecx
je 0x4093e9
lea eax, [ebp - 0x188]
push 0x42a86c
push eax
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.0040becd
add esp, 0x10
lea eax, [ebp - 0x188]
push ebx
push eax
call esi
test eax, eax
jne 0x4093e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x188]
push eax
push str.CreateDirectory__s_:_u
call fcn.004013fd
add esp, 0xc
mov edi, 0x614
lea ecx, [ebp - 0x84]
push edi
push ebx
push 2
call fcn.0040110a
lea eax, [ebp - 0x188]
lea ecx, [ebp - 0x84]
push eax
call fcn.004010cd
mov esi, 0x42a254
push esi
call fcn.0040c0a0
cmp byte [eax + 0x42a253], 0x5c
pop ecx
je 0x409431
push 0x42503c
push esi
call fcn.0040bb40
pop ecx
pop ecx
mov dword [ebp - 0x10], str..exe
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x14]
push esi
push 0x425080
push eax
call fcn.0041509d
add esp, 0x10
lea ecx, [ebp - 0x84]
push dword [ebp - 0x14]
call fcn.00401090
add dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0x426608
jl 0x409438
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x84]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040112c
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x10], eax
call fcn.00401127
cmp dword [ebp - 0x10], ebx
je 0x4094c2
lea eax, [ebp - 0x188]
push eax
push esi
call fcn.0040bb30
push esi
call fcn.0040c0a0
add esp, 0xc
cmp byte [eax + 0x42a253], 0x5c
je 0x4094d1
push 0x42503c
push esi
call fcn.0040bb40
pop ecx
pop ecx
jmp 0x4094d1
push ebx
push esi
push str.FAIL_SHFileOperation_FO_COPY_driver__s_:_d
call fcn.004013fd
add esp, 0xc
push edi
push ebx
push 2
lea ecx, [ebp - 0x84]
call fcn.0040110a
lea eax, [ebp - 0x188]
lea ecx, [ebp - 0x84]
push eax
call fcn.004010cd
mov esi, 0x42a150
push esi
call fcn.0040c0a0
cmp byte [eax + 0x42a14f], 0x5c
pop ecx
je 0x409514
push 0x42503c
push esi
call fcn.0040bb40
pop ecx
pop ecx
mov dword [ebp - 0x10], 0x426608
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x14]
push esi
push 0x425080
push eax
call fcn.0041509d
add esp, 0x10
lea ecx, [ebp - 0x84]
push dword [ebp - 0x14]
call fcn.00401090
add dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0x426610
jl 0x40951b
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x84]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040112c
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x10], eax
call fcn.00401127
cmp dword [ebp - 0x10], ebx
jne 0x409586
push ebx
push esi
push str.FAIL_SHFileOperation_FO_COPY_Source__s_:_d
call fcn.004013fd
add esp, 0xc
push edi
push ebx
push 2
lea ecx, [ebp - 0x84]
call fcn.0040110a
lea eax, [ebp - 0x188]
lea ecx, [ebp - 0x84]
push eax
call fcn.004010cd
push esi
call fcn.0040c0a0
cmp byte [eax + 0x42a14f], 0x5c
pop ecx
je 0x4095c4
push 0x42503c
push esi
call fcn.0040bb40
pop ecx
pop ecx
mov ebx, 0x426610
push dword [ebx]
lea eax, [ebp - 0x14]
push esi
push 0x425080
push eax
call fcn.0041509d
add esp, 0x10
lea ecx, [ebp - 0x84]
push dword [ebp - 0x14]
call fcn.00401090
add ebx, 4
cmp ebx, str.VETUP16.DLL
jl 0x4095c9
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x84]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040112c
lea ecx, [ebp - 0x84]
mov ebx, eax
call fcn.00401127
test ebx, ebx
jne 0x40962d
push ebx
push esi
push str.FAIL_SHFileOperation_FO_COPY_Component_1__s_:_d
call fcn.004013fd
add esp, 0xc
push edi
push 0
push 2
lea ecx, [ebp - 0x84]
call fcn.0040110a
lea eax, [ebp - 0x188]
lea ecx, [ebp - 0x84]
push eax
call fcn.004010cd
push esi
call fcn.0040c0a0
cmp byte [eax + 0x42a14f], 0x5c
pop ecx
je 0x40966c
push 0x42503c
push esi
call fcn.0040bb40
pop ecx
pop ecx
mov ebx, 0x426610
mov edi, str.winsetup
push dword [ebx]
lea eax, [ebp - 0x14]
push edi
push esi
push 0x42506c
push eax
call fcn.0041509d
add esp, 0x14
lea ecx, [ebp - 0x84]
push dword [ebp - 0x14]
call fcn.00401090
add ebx, 4
cmp ebx, str.VETUP16.DLL
jl 0x409676
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x84]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040112c
lea ecx, [ebp - 0x84]
mov ebx, eax
call fcn.00401127
test ebx, ebx
jne 0x4096dc
push ebx
push edi
push esi
push str.FAIL_SHFileOperation_FO_COPY_Component_2__s_s_:_d
call fcn.004013fd
add esp, 0x10
lea eax, [ebp - 0x188]
push eax
push esi
call fcn.0040bb30
push esi
call fcn.0040c0a0
add esp, 0xc
cmp byte [eax + 0x42a14f], 0x5c
je 0x409708
push 0x42503c
push esi
call fcn.0040bb40
pop ecx
pop ecx
push 0x426f50
call fcn.004013fd
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x84]
call fcn.0040104b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00415c12
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
jmp 0x409282