Function at 0x40f7d6
Capabilities:
Get common file path

Disassembly:
push 0x4f8
mov eax, 0x439c34
call fcn.00425083
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4fc], esi
mov dword [ebp - 0x504], eax
jne 0x40f8bf
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x39b]
push 0
push eax
mov byte [ebp - 0x39c], 0
call fcn.00421e30
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x39c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
neg eax
sbb eax, eax
neg eax
jne 0x40f85a
push str.GetModuleFileName
push str._s_failed_n
push 0x44d160
call fcn.00406a88
add esp, 0xc
xor eax, eax
jmp 0x40fbf8
push ebx
lea eax, [ebp - 0x297]
push 0
push eax
mov byte [ebp - 0x298], 0
call fcn.00421e30
push edi
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x39c]
push eax
call fcn.0040ac39
add esp, 0x18
neg eax
sbb eax, eax
neg eax
jne 0x40f896
push str.GetDirectoryNameFromPath
jmp 0x40f841
lea eax, [ebp - 0x298]
push eax
mov ecx, esi
call fcn.00403400
push dword [ebp - 0x504]
mov ecx, esi
call fcn.00403430
push str.autorun.inf
mov ecx, esi
call fcn.00403430
jmp 0x40f8c4
mov edi, 0x104
mov byte [0x45d408], 0
cmp dword [esi + 0x18], 0x10
jb 0x40f8d6
mov eax, dword [esi + 4]
jmp 0x40f8d9
lea eax, [esi + 4]
push 0
mov ebx, 0x45d408
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40f8f5
push ebx
mov ecx, esi
call fcn.00403400
xor eax, eax
cmp dword [esi + 0x18], 0x10
push 7
mov byte [ebp - 0x30], 0
pop ecx
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 4]
jb 0x40f911
mov eax, dword [eax]
mov ebx, 0x800
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push str.DIVISION
mov esi, str.Version
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
je 0x40fbf5
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.004033c0
and dword [ebp - 4], 0
push 0x43eb9c
lea ecx, [ebp - 0x3b8]
call fcn.00403430
mov edi, dword [ebp - 0x4fc]
cmp dword [edi + 0x18], 0x10
jb 0x40f96d
mov eax, dword [edi + 4]
jmp 0x40f970
lea eax, [edi + 4]
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push str.COEXIST_RELEASE_NUM
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
jne 0x40f9b6
cmp dword [edi + 0x18], 0x10
jb 0x40f995
mov eax, dword [edi + 4]
jmp 0x40f998
lea eax, [edi + 4]
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push str.ICE_REV
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
je 0x40fbe6
lea eax, [ebp - 0x30]
push eax
call fcn.00423504
push eax
push str._2.2d
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.00422cc0
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00403430
push str..dat
lea ecx, [ebp - 0x3b8]
call fcn.00403430
push 0x103
lea eax, [ebp - 0x193]
push 0
push eax
mov byte [ebp - 0x194], 0
call fcn.00421e30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40fbe6
push 0x43c560
lea eax, [ebp - 0x194]
push 0x104
push eax
call fcn.00421eaa
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0
lea ecx, [ebp - 0x3b8]
call fcn.00403460
cmp dword [ebp - 0x3a0], 0x10
mov eax, dword [ebp - 0x3b4]
jae 0x40fa6b
lea eax, [ebp - 0x3b4]
lea ecx, [ebp - 0x4f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40fbe6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x3a0], 0x10
mov eax, dword [ebp - 0x3b4]
jae 0x40fa9e
lea eax, [ebp - 0x3b4]
push eax
push str.looking_for__s_in_windows_folder_n
push 0x44d160
call fcn.00406f12
add esp, 0xc
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x40fabc
mov eax, dword [eax]
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push str.DriverVer
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
je 0x40fbe6
xor eax, eax
cmp dword [ebp - 0x3a0], 0x10
push 7
mov byte [ebp - 0x50], 0
pop ecx
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x3b4]
jae 0x40fb00
lea eax, [ebp - 0x3b4]
push ebx
push 0x20
lea ecx, [ebp - 0x50]
push ecx
push str.DriverVer
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
je 0x40fbe6
xor eax, eax
push 7
mov byte [ebp - 0x90], 0
pop ecx
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x4fc]
cmp dword [eax + 0x18], 0x10
jb 0x40fb48
add eax, 4
mov eax, dword [eax]
jmp 0x40fb4b
add eax, 4
push ebx
push 0x20
lea ecx, [ebp - 0x90]
push ecx
push str.CDGuid
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
je 0x40fbe6
xor eax, eax
cmp dword [ebp - 0x3a0], 0x10
push 7
mov byte [ebp - 0x70], 0
pop ecx
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x3b4]
jae 0x40fb8e
lea eax, [ebp - 0x3b4]
push ebx
push 0x20
lea ecx, [ebp - 0x70]
push ecx
push str.CDGuid
push esi
push eax
call fcn.0040edb8
add esp, 0x18
test eax, eax
je 0x40fbe6
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004257c9
test eax, eax
pop ecx
pop ecx
jne 0x40fbe6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004257c9
test eax, eax
pop ecx
pop ecx
jne 0x40fbe6
mov ecx, dword [ebp - 0x4fc]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x3b8]
push eax
call fcn.00402630
push 0
push 1
lea ecx, [ebp - 0x3b8]
call fcn.00401ec0
xor eax, eax
inc eax
call fcn.00425106
ret