Function at 0x50dcc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x4b4
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x4b0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x80], eax
xor eax, eax
push ebx
test ecx, ecx
mov dword [esp + 0x80], ecx
mov ebx, ecx
mov dword [esp + 0x34], eax
sete cl
mov dword [esp + 0x4c], ebx
test byte [0x630d48], 1
push esi
push edi
mov byte [esp + 0x3b], cl
jne 0x50dde1
mov esi, 0x630d48
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x50ddc9
push 4
lea eax, [esp + 0xb4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x50dd68
mov ax, word [esp + 0xb0]
test ax, ax
je 0x50dd68
cmp word [esp + 0xb2], 0
jne 0x50dd68
mov word [0x62e49c], ax
push 4
lea eax, [esp + 0xb4]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop
test eax, eax
je 0x50dda2
mov ax, word [esp + 0xb0]
test ax, ax
je 0x50dda2
cmp word [esp + 0xb2], 0
jne 0x50dda2
mov word [0x62e6a8], ax
cmp word [0x62e49c], 0x2e
je 0x50ddc0
push 0x5caac0
push 0
call fcn.0058a0bb
add esp, 8
mov dword [0x635ce4], eax
mov ecx, esi
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x50dddb
test byte [0x630d48], 1
jne 0x50dddf
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
mov cl, byte [esp + 0x3b]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
test edi, edi
je 0x50ed84
fld qword [0x61c8c0]
mov si, word [0x62e6a8]
fst qword [esp + 0xa0]
fld qword [0x61c850]
fst qword [esp + 0xa8]
mov byte [esp + 0x3b], cl
mov dword [esp + 0x7c], 3
mov word [esp + 0x4a], si
mov esi, dword [esp + 0x70]
dec edi
mov dword [ebp + 0xc], edi
mov edx, esi
mov edi, esi
mov dword [esp + 0xb0], eax
mov ecx, esi
mov dword [esp + 0x6c], edi
add esi, 0x18
mov dword [esp + 0x4c], 0
mov dword [esp + 0x70], esi
mov eax, dword [edi]
mov dword [esp + 0x64], eax
and eax, 0x3f
cmp eax, 0xc
ja 0x50ec92
jmp 0x50de60
jmp dword [eax*4 + 0x50ede0]
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x6c]
mov ecx, eax
sub ecx, dword [esp + 0xb0]
mov edx, dword [edi]
test edx, 0xc0000000
je 0x50ed64
movzx esi, word ds:[edi + 6]
add esi, esi
cmp ecx, esi
jae 0x50ed64
sub esi, ecx
cmp byte [esp + 0x3b], 0
jne 0x50ed4f
add eax, esi
cmp dword [ebp + 0x14], eax
jae 0x50ece3
mov byte [esp + 0x3b], 1
jmp 0x50ed4f
test dl, dl
jns 0x50eced
movzx eax, word [edi + 8]
jmp 0x50ecf2
mov eax, 0x20
mov edi, esi
mov dword [esp + 0x5c], eax
shr edi, 1
test edx, edx
jns 0x50ed0a
mov edi, edi
test edi, edi
je 0x50ed4f
mov ecx, edi
mov edi, ebx
jmp 0x50ed3c
mov eax, ecx
mov edx, ebx
and eax, 0xfffffffe
sub edx, eax
push ecx
push edx
lfence
lea eax, [edx + edi*2]
mov dword [esp + 0xb8], edx
push eax
call fcn.00581150
add esp, 0xc
test edi, edi
je 0x50ed4f
mov eax, dword [esp + 0x5c]
mov ecx, edi
mov edi, dword [esp + 0xb0]
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, esi
shr eax, 1
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x3c]
add eax, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], eax
mov edi, dword [ebp + 0xc]
fld qword [esp + 0xa0]
fld qword [esp + 0xa8]
test edi, edi
jne 0x50de21
mov esi, dword [ebp + 0x14]
fstp st(1)
fstp st(0)
mov dl, byte [esp + 0x3b]
add eax, 2
test dl, dl
jne 0x50ed95
cmp esi, eax
jae 0x50edd8
mov dl, 1
mov edi, dword ds:[esp + 0x88]
mov ecx, eax
test edi, edi
je 0x50edaf
test esi, esi
je 0x50edaf
xor eax, eax
mov word [edi], ax
mov eax, ecx
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x50edbc
mov dword [ecx], eax
mov ecx, dword [esp + 0x4bc]
test dl, dl
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
mov word [ebx], cx
jmp 0x50edaf