Function at 0x40b3f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b736
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x394], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0x3ac]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3bc]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1ad]
push ebx
push eax
mov dword [esp + 0x34], edi
mov byte [esp + 0x1b4], bl
call fcn.00418350
push str._nInfo__:_CoypInfFile_begin...._n
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call fcn.00404950
add esp, 0x10
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x24], ebp
jne 0x40b495
push str.Info__:_Fail_to_allocate_memory_for_vss_cfg_n
call fcn.00404950
add esp, 4
mov eax, 0x4e2f
jmp 0x40b7e6
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
push 0x104
lea ecx, [esp + 0x1ac]
mov dword [ebp + 0x1c], eax
push ecx
mov dword [ebp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40b4e7
push str.Error_:_Get_windows_path_error_n
call fcn.00404950
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x4e25
jmp 0x40b7e6
mov eax, dword [0x43700c]
cmp eax, 4
je 0x40b50a
cmp eax, 5
je 0x40b50a
cmp eax, 6
je 0x40b50a
cmp eax, 7
je 0x40b50a
cmp eax, 8
je 0x40b50a
cmp eax, 9
jne 0x40b517
push ebp
call fcn.00404d20
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b531
sub eax, edx
push eax
lea edx, [esp + 0x1ac]
push edx
lea ecx, [esp + 0x54]
call fcn.004039d0
push 0x12
push str._system32drivers_
lea ecx, [esp + 0x54]
mov dword [esp + 0x3bc], ebx
call fcn.00403e70
cmp dword [0x443cf4], ebx
mov dword [esp + 0x18], ebx
jbe 0x40b787
mov esi, 0x47ab90
mov dword [esp + 0x14], esi
jmp 0x40b584
mov edi, dword [esp + 0x28]
mov eax, edi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b5a0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.004039d0
push 1
push 0x42e478
lea ecx, [esp + 0x38]
mov byte [esp + 0x3bc], 1
call fcn.00403e70
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b5d3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00403e70
mov eax, dword [esp + 0x34]
mov esi, 0x10
cmp dword [esp + 0x48], esi
jae 0x40b5fc
lea eax, [esp + 0x34]
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40b64e
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x40b61d
lea eax, [esp + 0x34]
push eax
push str._nError_:_Fail_to_find_inf_file___s__n
call fcn.00404950
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x48], esi
mov byte [esp + 0x3b4], bl
jb 0x40b75e
mov edx, dword [esp + 0x34]
push edx
jmp 0x40b756
mov esi, dword [esp + 0x14]
mov edi, 0x42f488
mov ecx, 0xe
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b667
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov eax, dword [esp + 0x34]
je 0x40b686
mov esi, 0x10
cmp dword [esp + 0x48], esi
jae 0x40b67e
lea eax, [esp + 0x34]
push eax
call fcn.0040a0c0
jmp 0x40b69c
cmp dword [esp + 0x48], 0x10
jae 0x40b691
lea eax, [esp + 0x34]
push eax
call fcn.0040a520
mov esi, 0x10
mov eax, dword [esp + 0x38]
add esp, 4
cmp dword [esp + 0x48], esi
jae 0x40b6ad
lea eax, [esp + 0x34]
push eax
push str._nInfo__:_Install_inf_file___s__n
call fcn.00404950
mov ecx, dword [esp + 0x58]
add esp, 8
cmp dword [esp + 0x64], esi
jae 0x40b6c9
lea ecx, [esp + 0x50]
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x40b6d7
lea eax, [esp + 0x34]
push ebx
lea edx, [esp + 0x30]
push edx
push 0xfa
lea edx, [esp + 0x2b8]
push edx
push ebx
push 1
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
test eax, eax
jne 0x40b730
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_Install_inf_file_error._ErrorCode:__d_n
call fcn.00404950
add esp, 8
push ebp
mov dword [esp + 0x24], 0x4e25
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x48], esi
mov byte [esp + 0x3b4], bl
jb 0x40b75e
mov eax, dword [esp + 0x34]
push eax
jmp 0x40b756
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.Info__:_Install_inf_file_OK._n
call fcn.00404950
add esp, 4
cmp dword [esp + 0x48], esi
mov byte [esp + 0x3b4], bl
jb 0x40b75e
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040eec8
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add eax, 1
add esi, 0x1d0
cmp eax, dword [0x443cf4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jb 0x40b580
mov ebp, dword [esp + 0x24]
mov eax, dword [0x43700c]
cmp eax, 4
je 0x40b7aa
cmp eax, 5
je 0x40b7aa
cmp eax, 6
je 0x40b7aa
cmp eax, 7
je 0x40b7aa
cmp eax, 8
je 0x40b7aa
cmp eax, 9
jne 0x40b7c7
cmp dword [esp + 0x1c], 1
jne 0x40b7c7
sub esp, 0x24
mov ecx, 9
mov esi, ebp
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00401d70
add esp, 0x24
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x64], 0x10
jb 0x40b7e2
mov edx, dword [esp + 0x50]
push edx
call fcn.0040eec8
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x394]
xor ecx, esp
call fcn.00417b3b
add esp, 0x3a4
ret