Function at 0x526300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x4b4
mov eax, dword [0x62a040]
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 [0x62e098], 1
push esi
push edi
mov byte [esp + 0x3b], cl
jne 0x526421
mov esi, 0x62e098
lock bts dword [esi], 0x1f
setb al
test al, al
jne 0x526409
push 4
lea eax, [esp + 0xb4]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5263a8
mov ax, word [esp + 0xb0]
test ax, ax
je 0x5263a8
cmp word [esp + 0xb2], 0
jne 0x5263a8
mov word [0x62b688], 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 0x5263e2
mov ax, word [esp + 0xb0]
test ax, ax
je 0x5263e2
cmp word [esp + 0xb2], 0
jne 0x5263e2
mov word [0x62b6e8], ax
cmp word [0x62b688], 0x2e
je 0x526400
push 0x5c6aec
push 0
call fcn.0058783b
add esp, 8
mov dword [0x632e54], eax
mov ecx, esi
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x52641b
test byte [0x62e098], 1
jne 0x52641f
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 0x5273c4
fld qword [0x61a4e8]
mov si, word [0x62b6e8]
fst qword [esp + 0xa0]
fld qword [0x61a470]
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 0x5272d2
jmp 0x5264a0
jmp dword [eax*4 + 0x527420]
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 0x5273a4
movzx esi, word ds:[edi + 6]
add esi, esi
cmp ecx, esi
jae 0x5273a4
sub esi, ecx
cmp byte [esp + 0x3b], 0
jne 0x52738f
add eax, esi
cmp dword [ebp + 0x14], eax
jae 0x527323
mov byte [esp + 0x3b], 1
jmp 0x52738f
test dl, dl
jns 0x52732d
movzx eax, word [edi + 8]
jmp 0x527332
mov eax, 0x20
mov edi, esi
mov dword [esp + 0x5c], eax
shr edi, 1
test edx, edx
jns 0x52734a
mov edi, edi
test edi, edi
je 0x52738f
mov ecx, edi
mov edi, ebx
jmp 0x52737c
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.0057e5b0
add esp, 0xc
test edi, edi
je 0x52738f
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 0x526461
mov esi, dword [ebp + 0x14]
fstp st(1)
fstp st(0)
mov dl, byte [esp + 0x3b]
add eax, 2
test dl, dl
jne 0x5273d5
cmp esi, eax
jae 0x527418
mov dl, 1
mov edi, dword ds:[esp + 0x88]
mov ecx, eax
test edi, edi
je 0x5273ef
test esi, esi
je 0x5273ef
xor eax, eax
mov word [edi], ax
mov eax, ecx
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x5273fc
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.0057c26f
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
mov word [ebx], cx
jmp 0x5273ef