Function at 0x427935
Capabilities:
Get common file path
Write file on windows

Disassembly:
jmp 0x4278e0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61f10c
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
push ebp
mov ebp, dword [esp + 0x32c]
push esi
push edi
push 6
push ebp
xor ebx, ebx
xor esi, esi
call fcn.00401b22
add esp, 8
test eax, eax
je 0x427adc
mov esi, str.baktpkt7.sys
call fcn.00476710
test eax, eax
je 0x427949
push str.PrepareInstallDirectory1_5
push str.InstTpacketV
push 0xffffffffffffffff
push 0x6b240c
call fcn.00465fa0
add esp, 0x10
mov esi, str.baktpkt764.sys
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x224]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x224]
push esi
push ecx
lea edx, [esp + 0x12c]
push 0x681344
push edx
call fcn.00435a3e
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
stosb byte es:[edi], al
push str.tpacket7.sys
push ebp
lea eax, [esp + 0x2c]
push 0x681344
push eax
call fcn.00435a3e
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044e470
mov esi, eax
lea edx, [esp + 0x124]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x330], ebx
call fcn.0044e470
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push str.PrepareInstallDirectory_6___s_______s_
or edi, 0xffffffff
push str.InstTpacketV
push edi
push 0x6b240c
mov byte [esp + 0x344], 1
call fcn.00465fa0
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x32c], bl
call fcn.0044edf0
lea ecx, [esp + 0x18]
mov dword [esp + 0x32c], edi
call fcn.0044edf0
lea eax, [esp + 0x24]
push ebx
lea ecx, [esp + 0x128]
push eax
push ecx
call fcn.00401b59
add esp, 0xc
test eax, eax
je 0x427afc
push str.netlwf.inf
push ebp
lea edx, [esp + 0x2c]
push 0x681344
push edx
call fcn.00435a3e
add esp, 0x10
lea eax, [esp + 0x24]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x427b71
mov edx, dword [str.___________________________________________________________________________r_n__TPacket7.INF____NDIS_Usermode_I_O_Driver_r_n__r_n__Copyright__c__Microsoft_Corporation.__All_rights_reserved._r_n___________________________________________________________________________r_n_version__r_nSignature____t___Windows_NT___r_nClass______t_NetService_r_nClassGUID___t_4D36E974_E325_11CE_BFC1_08002BE10318_r_nProvider_____t__Msft__r_nDriverVer_t10_01_2002_6.0.5019.0_r_n_r_n_Manufacturer__r_n_Msft_MSFT_NTx86_NTia64_NTamd64_r_n_r_n_MSFT.NTx86__r_n_TPacket7_Desc_Install__TPacket7_r_n_r_n_MSFT.NTia64__r_n_TPacket7_Desc_Install__TPacket7_r_n_r_n_MSFT.NTamd64__r_n_TPacket7_Desc_Install__TPacket7_r_n_r_n___________________________________________________________________________r_n__Installation_Section_r_n___________________________________________________________________________r_n_Install__r_nAddRegInst_Ndi_r_nCharacteristics0x40008_r_nNetCfgInstanceId_3f1eaa9f_7472_4d8e_a69f_b23588a92f1b__r_nCopyfiles__tpacket7.copyfiles.sys_r_n_r_n_SourceDisksNames__r_n1_TPacket7_Desc_______r_n_r_n_SourceDisksFiles__r_nTPacket7.sys1_r_n_r_n_DestinationDirs__r_nDefaultDestDir12_r_nTPacket7.copyfiles.sys12_r_n_r_n_TPacket7.copyfiles.sys__r_nTPacket7.sys___2_r_n_r_n_r_n___________________________________________________________________________r_n__Ndi_installation_support_r_n___________________________________________________________________________r_n_Inst_Ndi__r_nHKR__Ndi_Service___TPacket7__r_nHKR__Ndi_CoServices_0x00010000__TPacket7__r_nHKR__Ndi_HelpText___TPacket7_HelpText__r_nHKR__Ndi_FilterClass___compression_r_nHKR__Ndi_FilterType_0x00010001_0x00000002_r_nHKR__NdiInterfaces_UpperRange___noupper__r_nHKR__NdiInterfaces_LowerRange___nolower__r_nHKR__NdiInterfaces__FilterMediaTypes___ethernet__wan__atm__r_nHKR__NdiInterfaces__LowerExclude_______ndisatm__ndiscowan__ndiswan__ndiswanasync__ndiswanipx__ndiswannbf__r_nHKR__Ndi_FilterRunType__0x00010001__2__this_filter_must_run_before_any_protocol_can_bind_to_the_below_miniport__r_n_r_n___________________________________________________________________________r_n__Service_installation_support_r_n___________________________________________________________________________r_n_Install.Services__r_nAddServiceTPacket7__TPacket7_Service_Inst_r_n_r_n_TPacket7_Service_Inst__r_nDisplayName_______TPacket7_Desc__r_nServiceType______1__SERVICE_KERNEL_DRIVER_r_nStartType________1__SERVICE_SYSTEM_START_r_nErrorControl_____1__SERVICE_ERROR_NORMAL_r_nServiceBinary_____12_TPacket7.sys_r_nLoadOrderGroup___NDIS_r_nDescription_______TPacket7_Desc__r_nAddReg___________Common.Params.reg_r_n_r_n_Install.Remove.Services__r_nDelServiceTPacket7_0x200_r_n_r_n_Install.Remove__r_nDelFiles__TPacket7.copyfiles.sys_r_n_r_n_Common.Params.reg__r_n_r_nHKR__FilterDriverParamsDriverParam___t_tParamDesc___t___Driverparam_for_lwf__r_nHKR__FilterDriverParamsDriverParam___t_tdefault___t___5__r_nHKR__FilterDriverParamsDriverParam___t_ttype___t_t___int__r_n_r_nHKR__FilterAdapterParamsAdapterParam___t_tParamDesc___t___Adapterparam_for_lwf__r_nHKR__FilterAdapterParamsAdapterParam___t_tdefault___t___10__r_nHKR__FilterAdapterParamsAdapterParam___t_ttype___t_t___int__r_n_r_n_Strings__r_nMsft___Microsoft__r_nTPacket7_Desc___TPacket7_Driver__r_nTPacket7_HelpText___TPacket7_Driver__r_n]
lea ecx, [esp + 0x20]
push ebx
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x427b8c
push str.PrepareInstallDirectory1_3
push str.InstTpacketV
push 0xffffffffffffffff
push 0x6b240c
call fcn.00465fa0
add esp, 0x10
mov eax, esi
jmp 0x427b8c
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
push edx
call fcn.0044e470
mov esi, eax
lea eax, [esp + 0x124]
mov ebx, 2
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x330], ebx
call fcn.0044e470
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push str.PrepareInstallDirectory1_4___s____s_
push str.InstTpacketV
push edi
push 0x6b240c
mov byte [esp + 0x344], 3
call fcn.00465fa0
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x32c], bl
call fcn.0044edf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x32c], edi
call fcn.0044edf0
jmp 0x427b8a
push edi
push str.PrepareInstallDirectory1_1_0x_lx
push str.InstTpacketV
push edi
push 0x6b240c
call fcn.00465fa0
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret