Function at 0x401000
Capabilities:
Get common file path
Identify system language via api

Disassembly:
sub esp, 0x17c
mov al, byte [0x411d80]
push esi
push edi
mov byte [esp + 8], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
lea edx, [esp + 0x6c]
sete cl
push edx
push str..inf
mov byte [0x40b880], cl
call fcn.004038f7
add esp, 8
cmp eax, 0xffffffff
jne 0x40106f
or ecx, eax
mov edi, str.No_found_.inf_
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4107fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x4011cb
push 0x40b914
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x40a068
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40b914
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40b914
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x40b914
call fcn.004023a0
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4107fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402fe0
cmp al, 1
jne 0x4011d0
push 0x64
push 0x40b8a8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ecx, 0xffffffff
mov edi, 0x40b8a8
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x410798
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.inf_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, 0x410798
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x410798
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.infdrvidx.bin
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40b8a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x190]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4012d9
mov ax, word [esi]
push 0x40a04c
push 0x411d80
mov word [0x411d80], ax
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012c2
push 0x40a048
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012c2
push 0x40a044
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012c2
push 0x40a040
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012c2
push 0x40a03c
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012ab
push 0x40a038
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012ab
push 0x40a034
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
je 0x4012ab
push 0x40a030
push 0x411d80
call fcn.00403870
add esp, 8
test eax, eax
jne 0x4012cc
push 2
call fcn.00401b20
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x17c
ret 0x10
push 1
call fcn.00401b20
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x17c
ret 0x10
mov eax, dword [esp + 0x188]
push 0
push 0x401310
push 0
push 0x81
push eax
mov dword [0x40b884], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
pop esi
add esp, 0x17c
ret 0x10