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

Disassembly:
mov eax, 0x100dab19
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 0x1004d350
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 0x1004d04a
cmp dword [ebp - 0x144], 1
je 0x1004d011
cmp dword [ebp - 0x144], 2
jne 0x1004d04a
cmp dword [ebp - 0x140], ebx
jbe 0x1004d04a
cmp dword [ebp - 0x140], 0x28
jae 0x1004d04a
lea eax, [ebp - 0x38]
lea edi, [esi + 0x9c]
push eax
mov ecx, edi
call fcn.10002026
cmp dword [esi + 0xb0], ebx
je 0x1004d04a
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0xb8]
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 0x1004d109
cmp dword [ebp - 0x144], 1
je 0x1004d0a6
cmp dword [ebp - 0x144], 2
jne 0x1004d109
cmp dword [ebp - 0x140], ebx
jbe 0x1004d109
cmp dword [ebp - 0x140], 0x28
jae 0x1004d109
lea eax, [ebp - 0x38]
lea ecx, [esi + 0xf0]
push eax
call fcn.10002026
cmp dword [esi + 0x104], ebx
je 0x1004d109
lea eax, [esi + 0xf0]
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 + 0xb8]
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 0x1004d1c7
cmp dword [ebp - 0x144], 1
je 0x1004d160
cmp dword [ebp - 0x144], 2
jne 0x1004d1c7
cmp dword [ebp - 0x140], ebx
jbe 0x1004d1c7
cmp dword [ebp - 0x140], 0x28
jae 0x1004d1c7
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x10c]
push eax
call fcn.10002026
cmp dword [esi + 0x120], ebx
je 0x1004d1c7
lea eax, [esi + 0x10c]
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 + 0xb8]
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 0x1004d285
cmp dword [ebp - 0x144], 1
je 0x1004d21e
cmp dword [ebp - 0x144], 2
jne 0x1004d285
cmp dword [ebp - 0x140], ebx
jbe 0x1004d285
cmp dword [ebp - 0x140], 0x28
jae 0x1004d285
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x128]
push eax
call fcn.10002026
cmp dword [esi + 0x13c], ebx
je 0x1004d285
lea eax, [esi + 0x128]
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 + 0xb8]
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 0x1004d33f
cmp dword [ebp - 0x144], 1
je 0x1004d2dc
cmp dword [ebp - 0x144], 2
jne 0x1004d33f
cmp dword [ebp - 0x140], ebx
jbe 0x1004d33f
cmp dword [ebp - 0x140], 0x28
jae 0x1004d33f
lea eax, [ebp - 0x38]
lea ecx, [esi + 0xd4]
push eax
call fcn.10002026
cmp dword [esi + 0xe8], ebx
je 0x1004d33f
lea eax, [esi + 0xd4]
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 + 0xb8]
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 0x1004d617
cmp dword [esi + 0xb0], ebx
je 0x1004d37f
cmp dword [esi + 0x104], ebx
je 0x1004d37f
cmp dword [esi + 0x120], ebx
je 0x1004d37f
cmp dword [esi + 0x13c], ebx
je 0x1004d37f
cmp dword [esi + 0xe8], ebx
je 0x1004d37f
xor al, al
jmp 0x1004d619
mov ebx, 0x100e2d52
lea ecx, [esi + 0x9c]
push ebx
call fcn.10002026
lea ecx, [esi + 0xf0]
push ebx
call fcn.10002026
lea ecx, [esi + 0x10c]
push ebx
call fcn.10002026
lea ecx, [esi + 0x128]
push ebx
call fcn.10002026
lea ecx, [esi + 0xd4]
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 + 0x9c]
call fcn.10002026
cmp dword [esi + 0xb0], 0
je 0x1004d42a
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x9c]
push eax
lea ecx, [esi + 0xb8]
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 + 0xf0]
call fcn.10002026
cmp dword [esi + 0x104], 0
mov edi, 0x100e3814
je 0x1004d4a8
lea eax, [esi + 0xf0]
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 + 0xb8]
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 + 0x10c]
call fcn.10002026
cmp dword [esi + 0x120], 0
je 0x1004d525
lea eax, [esi + 0x10c]
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 + 0xb8]
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 + 0x128]
call fcn.10002026
cmp dword [esi + 0x13c], 0
je 0x1004d5a2
lea eax, [esi + 0x128]
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 + 0xb8]
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 + 0xd4]
push eax
mov ecx, ebx
call fcn.10002026
cmp dword [esi + 0xe8], 0
je 0x1004d617
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 + 0xb8]
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