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

Disassembly:
mov eax, 0x100d8234
call fcn.100ac440
sub esp, 0x174
mov eax, dword [0x1011c710]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x148]
push eax
push 1
xor ebx, ebx
push ebx
push str.PPStream.FDS
push 0x80000000
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1002c165
push 9
pop ecx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
push str.country
push dword [ebp - 0x148]
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002be5f
cmp dword [ebp - 0x144], 1
je 0x1002be26
cmp dword [ebp - 0x144], 2
jne 0x1002be5f
cmp dword [ebp - 0x140], ebx
jbe 0x1002be5f
cmp dword [ebp - 0x140], 0x28
jae 0x1002be5f
lea eax, [ebp - 0x38]
lea edi, [esi + 0x128]
push eax
mov ecx, edi
call fcn.10002026
cmp dword [esi + 0x13c], ebx
je 0x1002be5f
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x144]
call fcn.10001f03
push 0x28
pop eax
push eax
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x144], ebx
call fcn.100ab720
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
push str.area
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, 0x100e3814
jne 0x1002bf1e
cmp dword [ebp - 0x144], 1
je 0x1002bebb
cmp dword [ebp - 0x144], 2
jne 0x1002bf1e
cmp dword [ebp - 0x140], ebx
jbe 0x1002bf1e
cmp dword [ebp - 0x140], 0x28
jae 0x1002bf1e
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x17c]
push eax
call fcn.10002026
cmp dword [esi + 0x190], ebx
je 0x1002bf1e
lea eax, [esi + 0x17c]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], ebx
call fcn.10003000
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push 0x28
pop eax
push eax
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x144], ebx
call fcn.100ab720
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
push str.province
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002bfdc
cmp dword [ebp - 0x144], 1
je 0x1002bf75
cmp dword [ebp - 0x144], 2
jne 0x1002bfdc
cmp dword [ebp - 0x140], ebx
jbe 0x1002bfdc
cmp dword [ebp - 0x140], 0x28
jae 0x1002bfdc
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x198]
push eax
call fcn.10002026
cmp dword [esi + 0x1ac], ebx
je 0x1002bfdc
lea eax, [esi + 0x198]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 1
call fcn.10003000
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push 0x28
pop eax
push eax
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x144], ebx
call fcn.100ab720
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
push str.city
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002c09a
cmp dword [ebp - 0x144], 1
je 0x1002c033
cmp dword [ebp - 0x144], 2
jne 0x1002c09a
cmp dword [ebp - 0x140], ebx
jbe 0x1002c09a
cmp dword [ebp - 0x140], 0x28
jae 0x1002c09a
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x1b4]
push eax
call fcn.10002026
cmp dword [esi + 0x1c8], ebx
je 0x1002c09a
lea eax, [esi + 0x1b4]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 2
call fcn.10003000
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push 0x28
pop eax
push eax
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x144], ebx
call fcn.100ab720
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
push 0x100e8160
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002c154
cmp dword [ebp - 0x144], 1
je 0x1002c0f1
cmp dword [ebp - 0x144], 2
jne 0x1002c154
cmp dword [ebp - 0x140], ebx
jbe 0x1002c154
cmp dword [ebp - 0x140], 0x28
jae 0x1002c154
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x160]
push eax
call fcn.10002026
cmp dword [esi + 0x174], ebx
je 0x1002c154
lea eax, [esi + 0x160]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 3
call fcn.10003000
push ebx
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002c42c
cmp dword [esi + 0x13c], ebx
je 0x1002c194
cmp dword [esi + 0x190], ebx
je 0x1002c194
cmp dword [esi + 0x1ac], ebx
je 0x1002c194
cmp dword [esi + 0x1c8], ebx
je 0x1002c194
cmp dword [esi + 0x174], ebx
je 0x1002c194
xor al, al
jmp 0x1002c42e
mov ebx, 0x100e2d52
lea ecx, [esi + 0x128]
push ebx
call fcn.10002026
lea ecx, [esi + 0x17c]
push ebx
call fcn.10002026
lea ecx, [esi + 0x198]
push ebx
call fcn.10002026
lea ecx, [esi + 0x1b4]
push ebx
call fcn.10002026
lea ecx, [esi + 0x160]
push ebx
call fcn.10002026
and word [ebp - 0x13c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.psnetwork.ini
push edi
push 0x104
lea eax, [ebp - 0x13c]
push eax
push ebx
push str.country
push str.areainfo
call fcn.100028ab
lea eax, [ebp - 0x13c]
push eax
lea ecx, [esi + 0x128]
call fcn.10002026
cmp dword [esi + 0x13c], 0
je 0x1002c23f
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x128]
push eax
lea ecx, [esi + 0x144]
call fcn.10001f03
push edi
push 0x104
lea eax, [ebp - 0x13c]
push eax
push ebx
push str.area
push str.areainfo
call fcn.100028ab
lea eax, [ebp - 0x13c]
push eax
lea ecx, [esi + 0x17c]
call fcn.10002026
cmp dword [esi + 0x190], 0
mov edi, 0x100e3814
je 0x1002c2bd
lea eax, [esi + 0x17c]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 4
call fcn.10003000
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push str.psnetwork.ini
push 0x104
lea eax, [ebp - 0x13c]
push eax
push ebx
push str.province
push str.areainfo
call fcn.100028ab
lea eax, [ebp - 0x13c]
push eax
lea ecx, [esi + 0x198]
call fcn.10002026
cmp dword [esi + 0x1ac], 0
je 0x1002c33a
lea eax, [esi + 0x198]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 5
call fcn.10003000
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push str.psnetwork.ini
push 0x104
lea eax, [ebp - 0x13c]
push eax
push ebx
push str.city
push str.areainfo
call fcn.100028ab
lea eax, [ebp - 0x13c]
push eax
lea ecx, [esi + 0x1b4]
call fcn.10002026
cmp dword [esi + 0x1c8], 0
je 0x1002c3b7
lea eax, [esi + 0x1b4]
push eax
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 6
call fcn.10003000
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.100017d0
push str.psnetwork.ini
push 0x104
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x100e8160
push str.areainfo
call fcn.100028ab
lea eax, [ebp - 0x13c]
lea ebx, [esi + 0x160]
push eax
mov ecx, ebx
call fcn.10002026
cmp dword [esi + 0x174], 0
je 0x1002c42c
push ebx
lea eax, [ebp - 0x180]
push edi
push eax
call fcn.100147a9
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x144]
mov dword [ebp - 4], 7
call fcn.10003000
push 0
push 1
lea ecx, [ebp - 0x180]
call fcn.100017d0
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.100ac33f
leave
ret