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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x24c4
call fcn.010474e0
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, 0x80004005
test eax, eax
je 0x1048fc7
push eax
lea eax, [esi + 0x14]
push eax
call fcn.0105847c
add esi, 0x14
cmp dword [esi], 0
mov dword [ebp - 0x24c4], esi
je 0x1048fdc
xor eax, eax
jmp 0x10492a2
push edi
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.0105a990
test eax, eax
je 0x104929f
xor ebx, ebx
xor eax, eax
push 0x10067f4
mov dword [ebp - 0x24b4], ebx
mov dword [ebp - 0x24c0], ebx
mov word [ebp - 0x24ac], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x104904d
push 0x824
lea eax, [ebp - 0x24ac]
push eax
call fcn.01047d0c
xor ecx, ecx
test al, al
setne cl
lea ecx, [ecx + ecx + 0x1269]
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp ax, word [ebp - 0x24ac]
je 0x104906d
lea eax, [ebp - 0x24ac]
push 0x5b
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1049086
push 0x1006088
mov esi, 0x1048
push esi
lea eax, [ebp - 0x24ac]
push eax
call fcn.0103584b
jmp 0x104908b
mov esi, 0x1048
lea eax, [ebp - 0x24c0]
push eax
call fcn.01057bf6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
movzx eax, word [ebp - 0x24c0]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x24ac]
push eax
push 0x10067a8
lea eax, [ebp - 0x1464]
push esi
push eax
call fcn.01035948
add esp, 0x1c
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
cmp eax, 0xffffffff
je 0x1049104
push eax
push 0x1006790
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0103590d
add esp, 0x10
test eax, eax
jl 0x1049104
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x1464]
push eax
call fcn.010358c7
lea eax, [ebp - 0x24b4]
push eax
push 0x20019
push ebx
push 0x1002038
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1049247
lea eax, [ebp - 0x24b8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x24b0]
push eax
push 0
push 0x1006774
push dword [ebp - 0x24b4]
xor edi, edi
inc edi
mov dword [ebp - 0x24b0], edi
mov dword [ebp - 0x24b8], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10491d3
cmp dword [ebp - 0x24b0], edi
jne 0x10491d3
mov edi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x1002ac4
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10491ce
cmp word [esi], 0x2d
jne 0x1049195
inc esi
inc esi
push esi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
test eax, eax
jbe 0x10491c9
push 0x1006764
push 0x1048
lea eax, [ebp - 0x1464]
push eax
call fcn.010358c7
push esi
push 0x1048
lea eax, [ebp - 0x1464]
push eax
call fcn.010358c7
push ebx
push 0
jmp 0x1049183
mov esi, 0x1048
and dword [ebp - 0x24bc], 0
push 4
pop edi
lea eax, [ebp - 0x24b8]
push eax
lea eax, [ebp - 0x24bc]
push eax
lea eax, [ebp - 0x24b0]
push eax
push 0
push 0x1006754
push dword [ebp - 0x24b4]
mov dword [ebp - 0x24b0], edi
mov dword [ebp - 0x24b8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1049239
cmp dword [ebp - 0x24b0], edi
jne 0x1049239
push dword [ebp - 0x24bc]
lea eax, [ebp - 0x1464]
push eax
push 0x1006734
push esi
push eax
call fcn.01035948
add esp, 0x14
push dword [ebp - 0x24b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104924a
push 4
pop edi
call fcn.0105c72d
test eax, eax
lea eax, [ebp - 0x1464]
je 0x1049260
push 0x100670c
jmp 0x1049265
push 0x10066e4
push esi
push eax
call fcn.010358c7
mov esi, dword [ebp - 0x24c4]
lea eax, [ebp - 0x1464]
push eax
push esi
call fcn.0105847c
mov ebx, eax
test ebx, ebx
jl 0x104928f
push dword [esi]
push 0x10066bc
push edi
jmp 0x1049297
push ebx
push 0x1006684
push 2
call fcn.01055c69
add esp, 0xc
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4