Function at 0x50ec50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556be3
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x150], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x148], edi
call fcn.00456bd0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x50eccc
push 0x80004005
call fcn.00456ea0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 2
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x158], 1
mov dword [ebp - 0x18], 0
mov ecx, 0x5a6420
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00457210
mov dword [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004613d0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x50ed4f
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
lea ecx, [ebp - 0x13c]
call fcn.004f9760
mov byte [ebp - 4], 7
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x50ed75
push 0x80004005
call fcn.00456ea0
mov eax, dword [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50ed9e
test dx, dx
je 0x50ed9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50ed9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x50ed78
xor eax, eax
jmp 0x50eda3
sbb eax, eax
or eax, 1
test eax, eax
sete byte [ebp - 0x13d]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50edcf
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp byte [ebp - 0x13d], 0
je 0x50ee4b
mov ecx, 0x5a6460
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00457210
mov byte [ebp - 4], 9
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0045be70
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ee21
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x50f11a
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50f11a
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x50ee9f
mov ecx, 0x5a64a0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00457210
mov byte [ebp - 4], 0xc
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0045be70
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50ee9d
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50ee21
mov byte [ebp - 4], 0xf
push 0x84
push 0
lea eax, [ebp - 0xc8]
push eax
call fcn.0052ebd0
add esp, 0xc
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
push 3
push dword [ebp - 0x18]
lea ecx, [ebp - 0xc8]
call fcn.00463aa0
mov byte [ebp - 4], 0x10
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x40]
call fcn.00455ea0
mov byte [ebp - 4], 0x11
push 0x70
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.0052ebd0
add esp, 0xc
lea ecx, [ebp - 0x138]
call fcn.00465250
mov byte [ebp - 4], 0x12
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
push 0
lea ecx, [ebp - 0x28]
call fcn.00468bc0
mov byte [ebp - 4], 0x13
push ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x138]
call fcn.00465360
test al, al
jne 0x50efcd
mov ecx, 0x5a39d0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00457210
mov byte [ebp - 4], 0x14
push eax
mov ecx, dword [ebp - 0x144]
call fcn.0045be70
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x13c]
call fcn.00456040
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
call fcn.00468f90
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x138]
call fcn.00467350
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.00455f00
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc8]
cmp eax, ecx
je 0x50efb8
push eax
call fcn.0052be09
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00456040
mov byte [ebp - 4], 0
jmp 0x50f11a
push ecx
push str.country_name
lea ecx, [ebp - 0x28]
call fcn.004698b0
push dword [eax]
mov ecx, edi
call fcn.004561f0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x50f00b
mov ecx, 0x5a6510
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00457210
mov byte [ebp - 4], 0x15
jmp 0x50ef59
push ecx
push str.country_code
lea ecx, [ebp - 0x28]
call fcn.004698b0
mov ecx, eax
call fcn.00469280
mov dword [edi + 4], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
call fcn.00468f90
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x138]
call fcn.00467350
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.00455f00
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 0xc8]
cmp eax, ecx
je 0x50f067
push eax
call fcn.0052be09
add esp, 4
jmp 0x50ee21
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret 8