Function at 0x46db90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5762f0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
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 eax, edx
mov dword [ebp - 0x90], eax
mov edi, ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x9c], edi
xorps xmm0, xmm0
movzx ecx, word [eax]
mov eax, ecx
mov word [ebp - 0x14], 0
push 9
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x24]
push eax
push 0x59
push ecx
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46dc3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x8c], eax
mov eax, esp
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x94]
mov dword [eax], str.Could_not_retrieve_language_from_language_ID_._Code:_
mov dword [eax + 4], 0x3b
call fcn.0046e8d0
add esp, 8
mov byte [ebp - 0x40], 0
xor al, al
jmp 0x46dccf
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 0x46dc55
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_language_is_.
mov dword [eax + 4], 0x1e
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 0x46dce7
mov byte [edi], al
mov byte [edi + 0x18], al
jmp 0x46de73
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
cmp eax, 8
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], 2
mov dword [ebp - 0x8c], ecx
jne 0x46dd43
movzx ecx, word [ecx]
mov esi, 0x65
mov edx, 2
mov eax, 0x8979f4
cmp ecx, esi
jb 0x46dd40
sub dword [ebp - 0x8c], eax
cmp cx, si
ja 0x46dd40
cmp edx, 1
je 0x46de2a
mov ecx, dword [ebp - 0x8c]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx esi, word [eax]
cmp cx, si
jae 0x46dd1f
mov eax, dword [ebp - 0x2c]
cmp eax, 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], 2
mov dword [ebp - 0x8c], ecx
jne 0x46dd99
movzx ecx, word [ecx]
mov esi, 0x7a
mov edx, 2
mov eax, 0x8979fc
cmp ecx, esi
jb 0x46dd99
sub dword [ebp - 0x8c], eax
cmp cx, si
ja 0x46dd99
cmp edx, 1
je 0x46de90
mov ecx, dword [ebp - 0x8c]
add eax, 2
dec edx
movzx ecx, word [eax + ecx]
movzx esi, word [eax]
cmp cx, si
jae 0x46dd78
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x88]
call fcn.00486170
sub esp, 8
mov ecx, esp
mov dword [ecx], str.Language__requires_no_special_processing.
mov dword [ecx + 4], 0x2d
mov ecx, eax
call fcn.0042fcc0
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00416f30
mov byte [edi], 0
mov byte [edi + 0x18], 0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x28], 0
je 0x46de73
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0046f620
cmp byte [ebp - 0x28], 0
mov byte [edi + 0x18], 1
je 0x46de73
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46de73
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46de69
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp - 0x90]
mov ecx, edi
call fcn.0046d7b0
cmp byte [ebp - 0x28], 0
je 0x46de73
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46de73
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46de24
push edx
push ecx
call fcn.0056d673
add esp, 8
mov eax, edi
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
mov edx, dword [ebp - 0x90]
mov ecx, edi
call fcn.0046da40
jmp 0x46de37