Function at 0x100146b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fbd67
mov eax, dword fs:[0]
push eax
sub esp, 0xacc
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xad8], ecx
mov dword [ebp - 0xad4], 0
mov dword [ebp - 0x458], 1
mov byte [ebp - 0x414], 0
push 0x3ff
push 0
lea eax, [ebp - 0x413]
push eax
call fcn.100cac20
add esp, 0xc
mov byte [ebp - 0x85c], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x85b]
push ecx
call fcn.100cac20
add esp, 0xc
push 0x10110fbd
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012200
lea ecx, [ebp - 0x454]
call dword [sym.imp.PsRegApi.dll_public:_void___thiscall_CRegApi::constructor_void_]
mov dword [ebp - 4], 1
push 0xf003f
mov edx, dword [0x10110ff0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x454]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::OpenKey_struct_HKEY_____char_const___unsigned_long_int_]
test eax, eax
jne 0x100147bd
mov dword [ebp - 0x868], 0x104
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [0x10111044]
push edx
lea ecx, [ebp - 0x454]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::QueryValue_char_const___char___unsigned_long_int__]
test eax, eax
je 0x100147af
mov dword [ebp - 0x458], 0
lea ecx, [ebp - 0x454]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::CloseKey_void_]
jmp 0x100147c7
mov dword [ebp - 0x458], 0
lea ecx, [ebp - 0x864]
call fcn.100163e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x864]
call fcn.100166d0
test eax, eax
je 0x1001481b
cmp dword [ebp - 0x458], 0
je 0x1001481b
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012200
push 0x10111444
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012240
jmp 0x10014ca6
push 0x10110fbe
mov ecx, dword [ebp - 0xad8]
push ecx
call fcn.100127e0
add esp, 8
movzx edx, al
test edx, edx
je 0x10014952
lea ecx, [ebp - 0x86c]
call fcn.10008b40
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xad8]
add ecx, 4
call fcn.10012840
test eax, eax
jle 0x1001493e
mov eax, dword [ebp - 0xad8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xad8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [str.SoftwareIntelWirelessFolders_]
push ecx
push 0x10111448
lea edx, [ebp - 0x86c]
push edx
call fcn.10013190
add esp, 0x14
lea ecx, [ebp - 0x8ac]
call dword [sym.imp.PsRegApi.dll_public:_void___thiscall_CRegApi::constructor_void_]
mov byte [ebp - 4], 4
push 0xf003f
lea ecx, [ebp - 0x86c]
call fcn.10008bc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x8ac]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::OpenKey_struct_HKEY_____char_const___unsigned_long_int_]
test eax, eax
jne 0x10014924
mov dword [ebp - 0x8b0], 1
mov dword [ebp - 0x8b4], 0x400
lea eax, [ebp - 0x8b4]
push eax
lea ecx, [ebp - 0x85c]
push ecx
lea edx, [ebp - 0x8b0]
push edx
push 0x10111450
lea ecx, [ebp - 0x8ac]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::QueryValue_char_const___unsigned_long_int___unsigned_char___unsigned_long_int__]
test eax, eax
jne 0x10014916
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012200
lea ecx, [ebp - 0x8ac]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::CloseKey_void_]
jmp 0x1001492e
mov dword [ebp - 0x458], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8ac]
call dword [sym.imp.PsRegApi.dll_public_virtual:_void___thiscall_CRegApi::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x86c]
call fcn.10008b60
jmp 0x10014ca6
lea ecx, [ebp - 0x94c]
call fcn.10096120
push 0x200
lea ecx, [ebp - 0x94c]
call fcn.10096160
test eax, eax
je 0x10014ca6
lea ecx, [ebp - 0x954]
push ecx
push 1
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov dword [ebp - 0x950], eax
cmp dword [ebp - 0x950], 0
jne 0x100149b8
lea edx, [ebp - 0x954]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x950], eax
cmp dword [ebp - 0x950], 0
je 0x10014a0e
mov dword [ebp - 0x950], 0
lea eax, [ebp - 0x85c]
push eax
push 0
mov ecx, dword [ebp - 0x954]
push ecx
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x958], eax
cmp dword [ebp - 0x958], 0
jl 0x10014a01
mov dword [ebp - 0x950], 1
mov edx, dword [ebp - 0x954]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x950], 0
je 0x10014c9c
lea eax, [ebp - 0x85c]
push eax
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012200
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012840
mov dword [ebp - 0x95c], eax
mov ecx, dword [ebp - 0x95c]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012800
movsx edx, al
cmp edx, 0x5c
je 0x10014a77
push 0x10111458
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012240
mov eax, dword [0x1011136c]
push eax
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012240
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10008bc0
push eax
mov ecx, dword [ebp - 0xad8]
call fcn.10014f00
test eax, eax
je 0x10014c60
mov dword [ebp - 0x9b4], 0
mov dword [ebp - 0x960], 0
mov dword [ebp - 0x9a8], 0
lea ecx, [ebp - 0x960]
push ecx
mov edx, dword [ebp - 0x9b4]
push edx
push 2
call sub.Secur32.dll_GetUserNameExA
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10014b3f
mov eax, dword [ebp - 0x960]
push eax
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0xacc], eax
mov ecx, dword [ebp - 0xacc]
mov dword [ebp - 0x9b4], ecx
push 4
push 0
mov edx, dword [ebp - 0x9b4]
push edx
call fcn.100cac20
add esp, 0xc
lea eax, [ebp - 0x960]
push eax
mov ecx, dword [ebp - 0x9b4]
push ecx
push 2
call sub.Secur32.dll_GetUserNameExA
movzx edx, al
mov dword [ebp - 0x9a8], edx
mov eax, dword [str.SoftwareIntelWirelessFolders_]
push eax
lea ecx, [ebp - 0x9b0]
call fcn.10012160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public:_void___thiscall_CRegApi::constructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x9ac]
push ecx
push 0xf003f
push 0
lea ecx, [ebp - 0x9b0]
call fcn.10008bc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::CreateKey_struct_HKEY_____char_const___unsigned_long_int__unsigned_long_int__unsigned_long_int__]
test eax, eax
jne 0x10014c1b
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::CloseKey_void_]
cmp dword [ebp - 0x9a8], 0
je 0x10014c1b
mov edx, dword [ebp - 0x9b4]
push edx
lea ecx, [ebp - 0x9b0]
call fcn.10012240
lea eax, [ebp - 0x9ac]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x9b0]
call fcn.10008bc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::CreateKey_struct_HKEY_____char_const___unsigned_long_int__unsigned_long_int__unsigned_long_int__]
test eax, eax
jne 0x10014c1b
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10008bc0
push eax
push 1
push str.Path
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::SetValue_char_const___unsigned_long_int__char_const__]
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public:_long_int___thiscall_CRegApi::CloseKey_void_]
cmp dword [ebp - 0x9b4], 0
je 0x10014c3f
mov ecx, dword [ebp - 0x9b4]
mov dword [ebp - 0xad0], ecx
mov edx, dword [ebp - 0xad0]
push edx
call fcn.100aaaba
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9a4]
call dword [sym.imp.PsRegApi.dll_public_virtual:_void___thiscall_CRegApi::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9b0]
call fcn.10008b60
jmp 0x10014c9a
push 0x400
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x85c]
push ecx
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012200
push str.System32
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012240
jmp 0x10014ca6
mov dword [ebp - 0x458], 0
cmp dword [ebp - 0x458], 0
jne 0x10014d7b
mov byte [ebp - 0xac4], 0
push 0x103
push 0
lea edx, [ebp - 0xac3]
push edx
call fcn.100cac20
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0xac4]
push eax
call fcn.100cac20
add esp, 0xc
lea ecx, [ebp - 0xac4]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x9b8], eax
cmp dword [ebp - 0x9b8], 0
jl 0x10014d7b
lea edx, [ebp - 0xac4]
push edx
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012200
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012840
mov dword [ebp - 0xac8], eax
mov eax, dword [ebp - 0xac8]
sub eax, 1
push eax
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012800
movsx ecx, al
cmp ecx, 0x5c
je 0x10014d66
push 0x10111470
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012240
mov edx, dword [0x1011136c]
push edx
mov ecx, dword [ebp - 0xad8]
add ecx, 8
call fcn.10012240
mov eax, dword [ebp - 0xad8]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.10012140
mov ecx, dword [ebp - 0xad4]
or ecx, 1
mov dword [ebp - 0xad4], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x864]
call fcn.100164c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x454]
call dword [sym.imp.PsRegApi.dll_public_virtual:_void___thiscall_CRegApi::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 4