Function at 0x50dc40
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 [0x630d38], 1
push esi
push edi
mov byte [esp + 0x3b], cl
jne 0x50dd61
mov esi, 0x630d38
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x50dd49
push 4
lea eax, [esp + 0xb4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x50dce8
mov ax, word [esp + 0xb0]
test ax, ax
je 0x50dce8
cmp word [esp + 0xb2], 0
jne 0x50dce8
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 0x50dd22
mov ax, word [esp + 0xb0]
test ax, ax
je 0x50dd22
cmp word [esp + 0xb2], 0
jne 0x50dd22
mov word [0x62e6a8], ax
cmp word [0x62e49c], 0x2e
je 0x50dd40
push 0x5cab58
push 0
call fcn.00589bfb
add esp, 8
mov dword [0x635ce4], eax
mov ecx, esi
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x50dd5b
test byte [0x630d38], 1
jne 0x50dd5f
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 0x50ed04
fld qword [0x61c900]
mov si, word [0x62e6a8]
fst qword [esp + 0xa0]
fld qword [0x61c890]
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 0x50ec12
jmp 0x50dde0
jmp dword [eax*4 + 0x50ed60]
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 0x50ece4
movzx esi, word ds:[edi + 6]
add esi, esi
cmp ecx, esi
jae 0x50ece4
sub esi, ecx
cmp byte [esp + 0x3b], 0
jne 0x50eccf
add eax, esi
cmp dword [ebp + 0x14], eax
jae 0x50ec63
mov byte [esp + 0x3b], 1
jmp 0x50eccf
test dl, dl
jns 0x50ec6d
movzx eax, word [edi + 8]
jmp 0x50ec72
mov eax, 0x20
mov edi, esi
mov dword [esp + 0x5c], eax
shr edi, 1
test edx, edx
jns 0x50ec8a
mov edi, edi
test edi, edi
je 0x50eccf
mov ecx, edi
mov edi, ebx
jmp 0x50ecbc
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.00580c90
add esp, 0xc
test edi, edi
je 0x50eccf
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 0x50dda1
mov esi, dword [ebp + 0x14]
fstp st(1)
fstp st(0)
mov dl, byte [esp + 0x3b]
add eax, 2
test dl, dl
jne 0x50ed15
cmp esi, eax
jae 0x50ed58
mov dl, 1
mov edi, dword ds:[esp + 0x88]
mov ecx, eax
test edi, edi
je 0x50ed2f
test esi, esi
je 0x50ed2f
xor eax, eax
mov word [edi], ax
mov eax, ecx
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x50ed3c
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.0057e94f
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
mov word [ebx], cx
jmp 0x50ed2f