Function at 0x408090
Capabilities:
Get common file path
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x41d84c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x45c], esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x468], edi
call fcn.00405ee0
push edi
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x458], 0
call fcn.00407550
cmp eax, 1
jne 0x4082ec
push str.Media
push str.VEN_14F1
lea ecx, [ebp - 0x44c]
call fcn.004064b0
or esi, 0xffffffff
cmp dword [ebp - 0x44c], esi
jne 0x40813c
push str.Media
push str.acpi14F1
lea ecx, [ebp - 0x44c]
call fcn.004064b0
cmp dword [ebp - 0x44c], esi
je 0x4082ec
push 4
lea eax, [ebp - 0x460]
push eax
push 0x20000001
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x4082ec
movzx ecx, word [ebp - 0x460]
lea edx, [ebp - 0x454]
push edx
mov dword [ebp - 0x46c], ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x464]
push ecx
mov esi, 0x104
push 0x417e78
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x454], esi
call fcn.00405ef0
test eax, eax
je 0x4082ec
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x464]
push ecx
push 0x417e6c
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x454], esi
call fcn.00405ef0
test eax, eax
je 0x4082ec
mov eax, dword [0x417e64]
mov edx, dword [str.SOFTWARE_]
mov cx, word [0x417e68]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x114], edx
mov word [ebp - 0x10c], cx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408200
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408210
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x114]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408230
mov dx, word [0x417e5c]
lea eax, [ebp - 0x31c]
mov word [edi], dx
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408250
lea edi, [ebp - 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408260
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x458]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea ecx, [ebp - 0x218]
push ecx
push str.Drivers
push 0
push 0
push 0x25
push 0
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirA]
test eax, eax
jne 0x4082db
mov edx, dword [ebp - 0x46c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x44d]
call fcn.00407e70
test eax, eax
je 0x4082db
mov edx, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x45c]
push edx
call fcn.00408000
test esi, esi
je 0x4082ec
mov eax, dword [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0xffffffff
call fcn.00405ff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a7a3
mov esp, ebp
pop ebp
ret 4