Function at 0x41547c
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov dword [ebp - 0x208], 0
push 0x200
push 0x42cae0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
push 0x42c690
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5055bc
push 0x42c690
call fcn.0041d138
add esp, 8
test byte [ebp + 8], 4
je 0x4155c3
push 0x42cae0
lea eax, [ebp - 0x408]
push eax
call fcn.0041d13c
add esp, 8
push 0x5055c4
lea eax, [ebp - 0x408]
push eax
call fcn.0041d138
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x415547
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041d0c4
add esp, 4
add eax, 0x32
push eax
call fcn.0041d2ec
add esp, 8
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041d13c
add esp, 8
push 0x5055d0
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0x4e1e90
call fcn.00416f6f
add esp, 4
push 0
push 0xb260
push 0x4e1e90
mov eax, dword [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00416099
add esp, 0x14
mov dword [ebp - 0x204], eax
cmp dword [ebp + 0xc], 0
je 0x41559f
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041ce53
add esp, 4
mov dword [ebp - 0x208], 0
cmp dword [ebp - 0x204], 0xffffffff
jne 0x4155c3
push 0x2004001
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x415818
test byte [ebp + 8], 8
je 0x415728
push 0x42cae0
lea eax, [ebp - 0x408]
push eax
call fcn.0041d13c
add esp, 8
push 0x5055dc
lea eax, [ebp - 0x408]
push eax
call fcn.0041d138
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x415646
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041d0c4
add esp, 4
add eax, 0x32
push eax
call fcn.0041d2ec
add esp, 8
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041d13c
add esp, 8
push 0x5055ec
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0x200
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5055fc
lea eax, [ebp - 0x200]
push eax
call fcn.0041d138
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0040820a
add esp, 4
test eax, eax
jne 0x4156b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4156b6
push 0x40001
call fcn.004064f2
add esp, 4
push 0x200400e
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x415818
push 0x4ed0f0
call fcn.00416f6f
add esp, 4
push 0
push 0x1827e
push 0x4ed0f0
mov eax, dword [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00416099
add esp, 0x14
mov dword [ebp - 0x204], eax
cmp dword [ebp + 0xc], 0
je 0x415704
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041ce53
add esp, 4
cmp dword [ebp - 0x204], 0xffffffff
jne 0x415728
push 0x200400e
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x415818
push 0x42c690
lea eax, [ebp - 0x408]
push eax
call fcn.0041d13c
add esp, 8
push 0x50560c
lea eax, [ebp - 0x408]
push eax
call fcn.0041d138
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4157a1
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041d0c4
add esp, 4
add eax, 0x32
push eax
call fcn.0041d2ec
add esp, 8
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041d13c
add esp, 8
push 0x50561c
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041d138
add esp, 8
push 0
call fcn.004081cb
push eax
push str.__HSPCMCIA.INF_r_n__r_n__Windows_95_Setup_information_file_for_HASP_PCMCIA__PC_Card_._r_n__Version_1.0__06_Mai_99_r_n__Aladdin_r_n_r_n_Version__r_nSignature_Chicago__r_nClassPorts_r_nProvider_String0__r_n_r_n_DestinationDirs__r_nDefaultDestDir17_r_n_r_n_Manufacturer__r_n_String1_Std_r_n_r_n_Std__r_n_String2_LptPort1_PCMCIAAladdin_Knowledge_Systems_Ltd._PC_CardHASP_V1.1_A809_r_n_r_n__________________WIN95_specific___________________r_n_LptPort1__r_nAddRegPorts.AddReg_r_nLogConfiglsnn_r_n_r_n_LptPort2__r_nAddRegPorts.AddReg_r_nLogConfiglsnn_r_n_r_n___________________WIN_NT_specific__________________r_n_r_n_LptPort1.NT__r_nAddRegPorts.AddReg_r_nLogConfiglsnn_r_n_r_n_LptPort2.NT__r_nAddRegPorts.AddReg_r_nLogConfiglsnn_r_n_r_n_LptPort3.NT__r_nAddRegPorts.AddReg_r_nLogConfiglsnn_r_n_r_n_LptPort1.NT.Services__r_nAddService__Parport__0x00000002__Service_Inst__Parport_EventLog_Inst___Port_Driver__function_driver_for_this_device__r_n_r_n_LptPort2.NT.Services__r_nAddService__Parport__0x00000002__Service_Inst__Parport_EventLog_Inst___Port_Driver__function_driver_for_this_device__r_n_r_n_LptPort3.NT.Services__r_nAddService__Parport__0x00000002__Service_Inst__Parport_EventLog_Inst___Port_Driver__function_driver_for_this_device__r_n_r_n_Parport_EventLog_Inst__r_nAddReg__Parport_EventLog_AddReg_r_n_r_n_Parport_EventLog_AddReg__r_nHKR__EventMessageFile_0x00020000____SystemRoot__System32IoLogMsg.dll___SystemRoot__System32driversparport.sys__r_nHKR__TypesSupported_0x00010001_7_r_n_r_n_Service_Inst__r_nLoadOrderGroup__System_Bus_Extender_r_nDisplayName______Parport.SVCDESC__r_nServiceType_____1__________________SERVICE_KERNEL_DRIVER_r_nStartType_______1__________________SERVICE_SYSTEM_START__BUGBUG__should_be_SERVICE_DEMAND_START__0x3__r_nErrorControl____0__________________SERVICE_ERROR_IGNORE__BUGBUG__should_be_SERVICE_ERROR_NORMAL__0x1__r_nServiceBinary____12_parport.sys_r_nLoadOrderGroup__Parallel_arbitrator_r_n_r_n______________________________________________________r_n_Ports.AddReg__r_nHKR__NoSetupUI_0_1_r_nHKR__PortSubClass_1_00_r_n_r_n_lsnn__r_nConfigPriorityHARDRECONFIG_r_nIOConfig3bc_3be_3ff::__378_37a_3ff::__278_27a_3ff::__r_n_r_n_ControlFlags__r_n_r_n_Strings__r_nString0_Aladdin_Knowledge_Systems_Ltd.__r_nString1_Aladdin_Knowledge_Systems_Ltd.__r_nString2_PC_CardHASP__PCMCIA___r_nString3_PC_CardHASP__PCMCIA___r_nPortsClassName_PC_CardHASP__PCMCIA___r_n__eof__r_n
mov eax, dword [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00416099
add esp, 0x14
mov dword [ebp - 0x204], eax
cmp dword [ebp + 0xc], 0
je 0x4157ed
mov eax, dword [ebp - 0x208]
push eax
call fcn.0041ce53
add esp, 4
mov dword [ebp - 0x208], 0
cmp dword [ebp - 0x204], 0xffffffff
jne 0x415811
push 0x200401c
call fcn.0040648e
add esp, 4
mov eax, 0xffffffff
jmp 0x415818
xor eax, eax
jmp 0x415818
pop edi
pop esi
pop ebx
leave
ret