Function at 0x46d7b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576265
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], edi
sub esp, 8
mov dword [ebp - 0x74], edi
mov eax, esp
mov dword [eax], str.Handling_Spanish_locale.
mov dword [eax + 4], 0x18
call fcn.0042d440
add esp, 8
mov word [ebp - 0x14], 0
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
push 9
push eax
movzx eax, word [esi]
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46d857
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x74], eax
mov eax, esp
lea edx, [ebp - 0x74]
mov ecx, esi
mov dword [eax], str.Could_not_retrieve_region_from_language_ID_._Code:_
mov dword [eax + 4], 0x39
call fcn.0046e8d0
add esp, 8
mov byte [ebp - 0x40], 0
xor al, al
jmp 0x46d8eb
xor eax, eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d871
sub ecx, edx
lea eax, [ebp - 0x24]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0045e3d0
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00486170
sub esp, 8
mov ecx, eax
mov eax, esp
mov dword [eax], str.The_locales_region_is_.
mov dword [eax + 4], 0x1c
call fcn.0046e720
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00416f30
movups xmm0, xmmword [ebp - 0x58]
xor ecx, ecx
mov al, 1
mov word [ebp - 0x58], cx
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov byte [ebp - 0x28], al
mov dword [ebp - 4], 1
test al, al
jne 0x46d905
mov byte [edi], al
mov byte [edi + 0x18], al
mov eax, edi
jmp 0x46da19
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x40]
cmp dword [ebp - 0x30], 2
jne 0x46d949
movzx ecx, word [edi]
mov esi, 0x45
mov edx, 2
mov eax, 0x897938
cmp ecx, esi
jb 0x46d949
sub edi, eax
cmp cx, si
ja 0x46d949
cmp edx, 1
je 0x46d9b2
movzx ecx, word [eax + edi + 2]
add eax, 2
dec edx
movzx esi, word [eax]
cmp cx, si
jae 0x46d931
sub esp, 8
mov eax, esp
mov dword [eax], str.The_locale_region_is_not_ES.
mov dword [eax + 4], 0x1e
call fcn.0042d440
mov esi, dword [ebp - 0x7c]
add esp, 8
mov ecx, esi
push 0x88a154
call fcn.0046eb40
cmp byte [ebp - 0x28], 0
je 0x46da17
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46da17
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46da0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46da0d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub esp, 8
mov eax, esp
mov dword [eax], str.The_locale_region_is_ES.
mov dword [eax + 4], 0x1a
call fcn.0042d440
mov esi, dword [ebp - 0x7c]
add esp, 8
mov ecx, esi
push 0x88a150
call fcn.0046eb40
cmp byte [ebp - 0x28], 0
je 0x46da17
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46da17
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46da0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9ac
push edx
push ecx
call fcn.0056d673
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret