Function at 0x1001a516
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x34c
mov eax, dword [0x10088374]
xor eax, esp
mov dword [esp + 0x348], eax
and dword [esp + 0x1c], 0
lea eax, [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x358]
push ebp
mov ebp, dword [esp + 0x358]
push esi
mov esi, dword [esp + 0x364]
push edi
push 0x2c
xor edi, edi
push edi
push eax
call sub.vcruntime140.dll_memset
and dword [esp + 0x28], edi
lea eax, [esp + 0x15c]
add esp, 0xc
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001a90c
and dword [esi], edi
test ebp, ebp
cmovne ebx, ebp
test ebx, ebx
je 0x1001a90c
xor ebp, ebp
push ebp
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones_
call sym.glib_lite.dll_Ordinal_384
push ebp
push ebp
push ebp
mov ebx, eax
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x50], ebx
call sym.glib_lite.dll_Ordinal_482
add esp, 0x20
mov dword [esp + 0x24], eax
test eax, eax
je 0x1001a8b4
push ebp
push str.Dynamic_DST
push ebx
call sym.glib_lite.dll_Ordinal_384
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push eax
mov dword [esp + 0x4c], eax
call sym.glib_lite.dll_Ordinal_482
mov ebx, eax
add esp, 0x20
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1001a8b8
lea eax, [esp + 0x14]
push eax
push 1
push ebp
push dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push closesocket
call ebp
test eax, eax
jne 0x1001a8b8
push 0x40
pop ecx
lea eax, [esp + 0x150]
mov dword [esp + 0x10], ecx
push eax
push edi
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x74]
push eax
push str.MUI_Std
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegLoadMUIStringW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1001a65e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
push eax
lea eax, [esp + 0x68]
push eax
push edi
push edi
push 0x1003aad0
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x1001a8aa
push 0x40
pop ecx
lea eax, [esp + 0x150]
mov dword [esp + 0x10], ecx
push eax
push 0
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0xc8]
push eax
push str.MUI_Dlt
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegLoadMUIStringW]
test eax, eax
je 0x1001a6bc
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
push eax
lea eax, [esp + 0xbc]
push eax
push 0
push 0
push 0x1003aae8
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x1001a8aa
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 1
push 0
push dword [esp + 0x28]
push closesocket
call ebp
test eax, eax
jne 0x1001a831
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
push ebp
push ebp
push str.FirstEntry
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x1001a8aa
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push str.LastEntry
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x1001a8aa
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
add eax, 2
push 0x80
push eax
call sym.glib_lite.dll_Ordinal_216
mov edi, dword [esp + 0x28]
mov dword [esi], eax
pop ecx
pop ecx
mov ecx, ebp
mov dword [esp + 0x18], ecx
test eax, eax
je 0x1001a82c
cmp edi, dword [esp + 0x28]
ja 0x1001a828
push edi
push 0x1003ab1c
lea eax, [esp + 0x140]
push 0xb
push eax
call fcn.1001a9d2
add esp, 0x10
mov dword [esp + 0x10], 0x2c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x1001a81d
cmp edi, dword [esp + 0x20]
jbe 0x1001a7c9
push 0x2c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x114]
push eax
call sub.vcruntime140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1001a80e
push 0x2c
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x114]
push eax
call sub.vcruntime140.dll_memcpy
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1001a295
lea eax, [esp + 0x74]
push eax
mov eax, dword [esi]
add eax, ebp
push eax
call fcn.1001a2d5
mov ecx, dword [esi]
add esp, 0x1c
test eax, eax
je 0x1001a81a
inc dword [esp + 0x18]
mov dword [ecx + ebp], edi
sub ebp, 0xffffff80
inc edi
cmp dword [esi], 0
jne 0x1001a75e
jmp 0x1001a828
push ecx
jmp 0x1001a81f
push dword [esi]
call sym.glib_lite.dll_Ordinal_121
and dword [esi], 0
pop ecx
mov ecx, dword [esp + 0x18]
lea edi, [ecx + 1]
jmp 0x1001a8aa
lea eax, [esp + 0x14]
push eax
push 1
push 0
push dword [esp + 0x30]
push closesocket
call ebp
test eax, eax
jne 0x1001a8b4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2c
push eax
lea eax, [esp + 0x38]
xor ebp, ebp
push eax
push ebp
push ebp
push 0x1003ab24
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x1001a8aa
push 2
pop edi
push 0x80
push edi
call sym.glib_lite.dll_Ordinal_216
mov dword [esi], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1001a295
lea eax, [esp + 0x70]
push eax
push dword [esi]
call fcn.1001a2d5
add esp, 0x18
test eax, eax
jne 0x1001a8aa
push dword [esi]
call sym.glib_lite.dll_Ordinal_121
pop ecx
mov dword [esi], ebp
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x1c]
push ebx
call sym.glib_lite.dll_Ordinal_121
push dword [esp + 0x30]
call sym.glib_lite.dll_Ordinal_121
push dword [esp + 0x2c]
call sym.glib_lite.dll_Ordinal_121
push dword [esp + 0x3c]
call sym.glib_lite.dll_Ordinal_121
mov eax, dword [esi]
add esp, 0x10
test eax, eax
je 0x1001a90c
mov dword [eax], 0x77c
mov ecx, edi
mov esi, dword [esi]
lea eax, [edi - 2]
shl eax, 7
shl ecx, 7
mov edx, dword [eax + esi]
mov eax, 0xbb7
cmp edx, eax
jb 0x1001a904
lea eax, [edx + 1]
mov dword [ecx + esi - 0x80], eax
mov eax, edi
jmp 0x1001a90e
xor eax, eax
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10034eb7
add esp, 0x34c
ret