Function at 0x4097b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x428bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x3b8
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x3b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x3cc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3dc]
push 0x103
xor esi, esi
lea eax, [esp + 0x1cd]
push esi
push eax
mov dword [esp + 0x30], edi
mov byte [esp + 0x1d4], 0
call fcn.00416150
push str._nInfo__:_CoypInfFile_begin...._n
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call fcn.00403d60
add esp, 0x10
push 0x104
lea ecx, [esp + 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x409856
push str.Error_:_Get_windows_path_error_n
call fcn.00403d60
add esp, 4
mov eax, 0x4e25
jmp 0x409bb8
mov eax, dword [0x434008]
cmp eax, 4
je 0x40986f
cmp eax, 5
je 0x40986f
cmp eax, 6
je 0x40986f
cmp eax, 7
jne 0x409880
lea edx, [esp + 0x2c]
push edx
call fcn.00403e60
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c8]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4098a1
sub eax, edx
push eax
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x74]
call fcn.00403070
push 0x12
push str._system32drivers_
lea ecx, [esp + 0x74]
mov dword [esp + 0x3dc], esi
call fcn.00402f80
call fcn.0040d647
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4098ef
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
cmp dword [0x43fd10], esi
mov ebx, 1
mov byte [esp + 0x3d4], bl
mov dword [esp + 0x20], esi
jbe 0x409b42
mov esi, 0x45a030
jmp 0x409926
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x1c4]
test bl, al
je 0x40993d
cmp byte [0x43fbf4], 0
je 0x409b26
test al, 2
je 0x409961
cmp byte [0x43fbf3], 0
je 0x409b26
mov eax, dword [0x434008]
cmp eax, 6
je 0x409961
cmp eax, 7
jne 0x409b26
mov eax, edi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
lea edx, [eax + 1]
jmp 0x409980
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409980
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.00403070
push ebx
push 0x42b460
lea ecx, [esp + 0x58]
mov byte [esp + 0x3dc], 2
call fcn.00402f80
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4099b2
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00402f80
mov eax, dword [esp + 0x54]
mov edi, 0x10
cmp dword [esp + 0x68], edi
jae 0x4099db
lea eax, [esp + 0x54]
lea ecx, [esp + 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x54]
jne 0x409a3d
cmp dword [esp + 0x68], edi
jae 0x4099fd
lea eax, [esp + 0x54]
push eax
lea edx, [esp + 0x18]
push str._nError_:_Fail_to_find_inf_file___s__n
push edx
call fcn.004034f0
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00403d60
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x68], edi
mov byte [esp + 0x3d4], bl
jb 0x409b26
mov eax, dword [esp + 0x54]
push eax
jmp 0x409b1e
cmp dword [esp + 0x68], edi
jae 0x409a47
lea eax, [esp + 0x54]
push eax
call fcn.00408e30
mov eax, dword [esp + 0x58]
add esp, 4
cmp dword [esp + 0x68], edi
jae 0x409a5e
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
push str._nInfo__:_Install_inf_file___s__n
push ecx
call fcn.004034f0
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00403d60
mov ecx, dword [esp + 0x80]
add esp, 0x10
cmp dword [esp + 0x84], edi
jae 0x409a8f
lea ecx, [esp + 0x70]
cmp dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
jae 0x409a9d
lea eax, [esp + 0x54]
push 0
lea edx, [esp + 0x2c]
push edx
push 0xfa
lea edx, [esp + 0x2d8]
push edx
push 0
push ebx
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
test eax, eax
jne 0x409aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.Error_:_Install_inf_file_error._ErrorCode:__d_n
push eax
call fcn.004034f0
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00403d60
add esp, 0x10
cmp dword [esp + 0x68], edi
mov dword [esp + 0x1c], 0x4e25
mov byte [esp + 0x3d4], bl
jb 0x409b26
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x409b1e
push str.Info__:_Install_inf_file_OK._n
call fcn.00403d60
add esp, 4
cmp dword [esp + 0x68], edi
mov byte [esp + 0x3d4], bl
jb 0x409b26
mov edx, dword [esp + 0x54]
push edx
call fcn.0040d16a
add esp, 4
mov eax, dword [esp + 0x20]
add eax, ebx
add esi, 0x1cc
cmp eax, dword [0x43fd10]
mov dword [esp + 0x20], eax
jb 0x409922
mov eax, dword [0x434008]
cmp eax, 4
je 0x409b5b
cmp eax, 5
je 0x409b5b
cmp eax, 6
je 0x409b5b
cmp eax, 7
jne 0x409b79
cmp dword [esp + 0x18], ebx
jne 0x409b79
sub esp, 0x24
mov ecx, 9
lea esi, [esp + 0x50]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00401ad0
add esp, 0x24
lea eax, [ebp - 0x10]
mov byte [esp + 0x3d4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x84], 0x10
jb 0x409bb4
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0040d16a
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b4]
xor ecx, esp
call fcn.0041613d
add esp, 0x3c4
ret