Function at 0x420f9d
Capabilities:
Get common file path

Disassembly:
push 0x4f8
mov eax, 0x46d27b
call fcn.004573d3
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 0x421086
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x39b]
push 0
push eax
mov byte [ebp - 0x39c], 0
call fcn.004530b0
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 0x421021
push str.GetModuleFileName
push str._s_failed_n
push 0x4932a8
call fcn.0041fb18
add esp, 0xc
xor eax, eax
jmp 0x4213bf
push ebx
lea eax, [ebp - 0x297]
push 0
push eax
mov byte [ebp - 0x298], 0
call fcn.004530b0
push edi
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x39c]
push eax
call fcn.0042505e
add esp, 0x18
neg eax
sbb eax, eax
neg eax
jne 0x42105d
push str.GetDirectoryNameFromPath
jmp 0x421008
lea eax, [ebp - 0x298]
push eax
mov ecx, esi
call fcn.00404200
push dword [ebp - 0x504]
mov ecx, esi
call fcn.004064c0
push str.autorun.inf
mov ecx, esi
call fcn.004064c0
jmp 0x42108b
mov edi, 0x104
mov byte [0x4a3448], 0
cmp dword [esi + 0x18], 0x10
jb 0x42109d
mov eax, dword [esi + 4]
jmp 0x4210a0
lea eax, [esi + 4]
push 0
mov ebx, 0x4a3448
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4210bc
push ebx
mov ecx, esi
call fcn.00404200
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 0x4210d8
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.00428396
add esp, 0x18
test eax, eax
je 0x4213bc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.004043b0
and dword [ebp - 4], 0
push 0x477b90
lea ecx, [ebp - 0x3b8]
call fcn.004064c0
mov edi, dword [ebp - 0x4fc]
cmp dword [edi + 0x18], 0x10
jb 0x421134
mov eax, dword [edi + 4]
jmp 0x421137
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.00428396
add esp, 0x18
test eax, eax
jne 0x42117d
cmp dword [edi + 0x18], 0x10
jb 0x42115c
mov eax, dword [edi + 4]
jmp 0x42115f
lea eax, [edi + 4]
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push str.ICE_REV
push esi
push eax
call fcn.00428396
add esp, 0x18
test eax, eax
je 0x4213ad
lea eax, [ebp - 0x30]
push eax
call fcn.0045479b
push eax
push str._2.2d
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.004543d1
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.004064c0
push str..dat
lea ecx, [ebp - 0x3b8]
call fcn.004064c0
push 0x103
lea eax, [ebp - 0x193]
push 0
push eax
mov byte [ebp - 0x194], 0
call fcn.004530b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4213ad
push 0x472e4c
lea eax, [ebp - 0x194]
push 0x104
push eax
call fcn.00454360
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0
lea ecx, [ebp - 0x3b8]
call fcn.00406ab0
cmp dword [ebp - 0x3a0], 0x10
mov eax, dword [ebp - 0x3b4]
jae 0x421232
lea eax, [ebp - 0x3b4]
lea ecx, [ebp - 0x4f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4213ad
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x3a0], 0x10
mov eax, dword [ebp - 0x3b4]
jae 0x421265
lea eax, [ebp - 0x3b4]
push eax
push str.looking_for__s_in_windows_folder_n
push 0x4932a8
call fcn.0041ffa2
add esp, 0xc
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x421283
mov eax, dword [eax]
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push str.DriverVer
push esi
push eax
call fcn.00428396
add esp, 0x18
test eax, eax
je 0x4213ad
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 0x4212c7
lea eax, [ebp - 0x3b4]
push ebx
push 0x20
lea ecx, [ebp - 0x50]
push ecx
push str.DriverVer
push esi
push eax
call fcn.00428396
add esp, 0x18
test eax, eax
je 0x4213ad
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 0x42130f
add eax, 4
mov eax, dword [eax]
jmp 0x421312
add eax, 4
push ebx
push 0x20
lea ecx, [ebp - 0x90]
push ecx
push str.CDGuid
push esi
push eax
call fcn.00428396
add esp, 0x18
test eax, eax
je 0x4213ad
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 0x421355
lea eax, [ebp - 0x3b4]
push ebx
push 0x20
lea ecx, [ebp - 0x70]
push ecx
push str.CDGuid
push esi
push eax
call fcn.00428396
add esp, 0x18
test eax, eax
je 0x4213ad
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004560ae
test eax, eax
pop ecx
pop ecx
jne 0x4213ad
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004560ae
test eax, eax
pop ecx
pop ecx
jne 0x4213ad
mov ecx, dword [ebp - 0x4fc]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x3b8]
push eax
call fcn.00403cf0
push 0
push 1
lea ecx, [ebp - 0x3b8]
call fcn.00402f50
xor eax, eax
inc eax
call fcn.00457456
ret