Function at 0x557490
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5900c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0
push 0
push 0
push 5
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
mov edi, eax
test edi, edi
jne 0x557522
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x60], eax
mov ecx, esp
mov dword [ecx], str.Failed_to_get_location_information__error_code_.
mov dword [ecx + 4], 0x34
lea ecx, [ebp - 0x60]
call fcn.00557fe0
mov byte [esi], 0
add esp, 8
mov byte [esi + 0x18], 0
jmp 0x55767a
push ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.0046df80
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
push 0
sub eax, ecx
sar eax, 1
push eax
push ecx
push 5
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
test eax, eax
jne 0x557586
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x64], eax
mov eax, esp
lea ecx, [ebp - 0x64]
mov dword [eax], str.Failed_to_get_location_information__error_code_.
mov dword [eax + 4], 0x34
call fcn.00557fe0
mov byte [esi], 0
add esp, 8
mov byte [esi + 0x18], 0
jmp 0x557672
push edi
push dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0045e3d0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00486170
mov edx, eax
mov edi, edx
cmp dword [edx + 0x14], 0x10
jb 0x5575bd
mov edi, dword [edx]
mov ecx, edx
jb 0x5575c3
mov ecx, dword [edx]
mov eax, dword [edx + 0x10]
add eax, ecx
cmp eax, edi
je 0x5575db
nop dword [eax]
cmp byte [eax - 1], 0
jne 0x5575db
dec eax
cmp eax, edi
jne 0x5575d0
cmp dword [edx + 0x14], 0x10
jb 0x5575e3
mov edx, dword [edx]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, eax
je 0x557605
sub eax, edx
lea ecx, [ebp - 0x44]
push eax
push edx
call fcn.0042b970
movups xmm0, xmmword [ebp - 0x44]
lea ecx, [ebp - 0x5c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 1
call fcn.00416f30
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x55765e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x557654
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x557654
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0056d673
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x70]
call fcn.0046e080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret