Function at 0x401770
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov dword [ebp - 0x18], str.__inf
mov dword [ebp - 0x14], str._windrvr6.inf
mov dword [ebp - 0x10], str.__silent
mov dword [ebp - 0xc], str._install
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
movzx eax, byte [0x40a8d5]
test eax, eax
je 0x4017bb
push str._nInstalling_Jungo_WinDriver...
call fcn.00401e88
add esp, 4
push str.Jungo_WinDriver_2000_NT_XP
push 0x40a6c8
call fcn.00401da0
add esp, 8
push 0x40a6c8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call section..text
movzx ecx, al
test ecx, ecx
je 0x4019d1
push 0x40a6c8
push 0
push 0
push str.wdreg.exe__inf_windrvr6.inf__silent_install
call fcn.00401100
add esp, 0x10
mov dword [0x40a8d8], eax
cmp dword [0x40a8d8], 1
jne 0x401823
push 0x4083d0
call fcn.00401560
add esp, 4
push 1
call fcn.004015b0
add esp, 4
lea edx, [ebp - 0x348]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x401863
lea eax, [ebp - 0x120]
push eax
push 0
push 0x408400
lea ecx, [ebp - 0x348]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401877
push 0x40840c
lea edx, [ebp - 0x120]
push edx
call fcn.00401d90
add esp, 8
lea eax, [ebp - 0x120]
push eax
push str.wdreg.exe__inf_RLinkDRV_WDP.inf__silent__log___s__install
lea ecx, [ebp - 0x238]
push ecx
call fcn.00402054
add esp, 0xc
push 0x40a6c8
push 0
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.00401100
add esp, 0x10
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
jne 0x40197d
push 0x408458
lea eax, [ebp - 0x120]
push eax
call fcn.00401d7c
add esp, 8
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40197d
mov ecx, dword [ebp - 0x34c]
push ecx
push 0x104
lea edx, [ebp - 0x480]
push edx
call fcn.00402136
add esp, 0xc
test eax, eax
je 0x40196e
push str.warning
lea eax, [ebp - 0x480]
push eax
call fcn.004020b0
add esp, 8
test eax, eax
je 0x401925
mov dword [ebp - 0x240], 0
push str.Warning
lea ecx, [ebp - 0x480]
push ecx
call fcn.004020b0
add esp, 8
test eax, eax
je 0x401947
mov dword [ebp - 0x240], 0
push str.WARNING
lea edx, [ebp - 0x480]
push edx
call fcn.004020b0
add esp, 8
test eax, eax
je 0x401969
mov dword [ebp - 0x240], 0
jmp 0x4018e4
mov eax, dword [ebp - 0x34c]
push eax
call fcn.00401cca
add esp, 4
movzx ecx, byte [0x40a8d5]
test ecx, ecx
jne 0x401997
lea edx, [ebp - 0x120]
push edx
call fcn.00401ca0
add esp, 4
cmp dword [ebp - 0x240], 1
jne 0x4019b7
push str.Unable_to_install_RLink_module.
call fcn.00401560
add esp, 4
push 1
call fcn.004015b0
add esp, 4
movzx eax, byte [0x40a8d5]
test eax, eax
je 0x4019cf
push str.RLink_USB_driver__WinDriver__installed_successfully.
call fcn.00401560
add esp, 4
jmp 0x401a19
push 0x40a6c8
push 0
push 0
push str.wdreg16__inf_windrvr6.inf__silent_install
call fcn.00401100
add esp, 0x10
mov dword [0x40a8d8], eax
cmp dword [0x40a8d8], 1
jne 0x401a0c
push str.Unable_to_install_WinDrivers_kernel_module.
call fcn.00401560
add esp, 4
push 1
call fcn.004015b0
add esp, 4
push str.WinDrivers_kernel_module_installed._nCannot_complete_installation_of_the_RLink_USB_Driver_automatically_under_Windows_98_or_Millenium._nWhen_you_plug_the_RLink__you_will_have_to_select_the_driver_manually._nIt_is_located_there_on_the_Installation_CD:_nDRIVERRLinkDrvRLinkUSB_WDP.inf
call fcn.00401560
add esp, 4
mov esp, ebp
pop ebp
ret