Function at 0x10019e7
Capabilities:
Get geographical location
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
mov ebx, 0x2001f
push ebx
push esi
push 0x10010f0
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
je 0x1001a64
jle 0x1001a32
and edi, 0xffff
or edi, 0x80070000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0x99
push esi
push 0x100147c
push esi
push dword [ebp - 8]
push 0x1001748
jmp 0x1001dd1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x100123c
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 4
call edi
test eax, eax
jne 0x1001ac4
cmp dword [ebp - 0x14], 1
jbe 0x1001ac4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xaa
push esi
push 0x100147c
push esi
push 0x10016f0
jmp 0x1001bb7
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push 0x1001180
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1001b27
mov edi, eax
jle 0x1001af5
and edi, 0xffff
or edi, 0x80070000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xb5
push esi
push 0x100147c
push esi
push dword [ebp - 8]
push 0x10016a8
jmp 0x1001dd1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x1001268
push dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 4
call edi
mov edi, eax
cmp edi, esi
je 0x1001b88
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xc4
push esi
push 0x100147c
push esi
push edi
push 0x1001670
push 0x3000000
call fcn.01001835
add esp, 0xc
jmp 0x1001bc3
cmp dword [ebp - 0x20], esi
jne 0x1001bd1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xca
push esi
push 0x100147c
push esi
push 0x1001634
push 0x3000000
call fcn.01001835
pop ecx
pop ecx
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
xor edi, edi
inc edi
jmp 0x1001de4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push esi
push 0x1001630
push esi
push 0x100116c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
je 0x1001c39
jle 0x1001c07
and edi, 0xffff
or edi, 0x80070000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xda
push esi
push 0x100147c
push esi
push dword [ebp - 8]
push 0x10015f0
jmp 0x1001dd1
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
push dword [eax*4 + 0x1001374]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.01001850
mov edi, eax
cmp edi, esi
jne 0x1001cc9
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jb 0x1001c3c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push esi
push 0x1001630
push esi
push 0x100124c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
je 0x1001d10
mov edi, ebx
jle 0x1001c99
and edi, 0xffff
or edi, 0x80070000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xf2
push esi
push 0x100147c
push esi
push ebx
push 0x10015a8
jmp 0x1001dd1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
mov eax, dword [ebp - 8]
push 0x100178c
push 0x1001480
push 0xe3
push esi
push 0x100147c
push esi
push edi
push dword [eax*4 + 0x1001374]
push 0x1001580
push 0x2000000
call fcn.01001835
add esp, 0x10
jmp 0x1001dde
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push esi
push 0x1001228
push dword [ebp - 4]
mov dword [ebp - 0x24], 1
call ebx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1001d76
mov edi, eax
jle 0x1001d47
and edi, 0xffff
or edi, 0x80070000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0xfb
push esi
push 0x100147c
push esi
push dword [ebp - 8]
push 0x1001540
jmp 0x1001dd1
mov eax, dword [ebp - 0x24]
inc eax
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push 0x100123c
push dword [ebp - 4]
call ebx
mov ebx, eax
cmp ebx, esi
je 0x1001de4
mov edi, ebx
jle 0x1001da6
and edi, 0xffff
or edi, 0x80070000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sub.WDSCORE.dll_CurrentIP
push eax
push 0x100178c
push 0x1001480
push 0x104
push esi
push 0x100147c
push esi
push ebx
push 0x1001504
push 0x2000000
call fcn.01001835
add esp, 0xc
push eax
call sub.WDSCORE.dll_WdsSetupLogMessageW
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
je 0x1001df7
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x18], esi
cmp dword [ebp - 4], esi
je 0x1001e04
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], esi
je 0x1001e11
push dword [ebp - 0xc]
call ebx
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
je 0x1001e1b
push dword [ebp - 0x10]
call ebx
cmp edi, esi
jl 0x1001e23
xor eax, eax
jmp 0x1001e25
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret