Function at 0x4915a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x60889c
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x31c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x334]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x677600
mov dword [esp + 0x1c], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x14]
mov dword [esp + 0x33c], ebx
call fcn.004036c0
call fcn.00484fb0
test eax, eax
jne 0x491656
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040a210
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x33c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4918d7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4918d7
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push ebx
push ebx
call esi
mov edi, eax
lea ecx, [edi*4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, ebx
jne 0x4916b2
lea esi, [esp + 0x14]
call fcn.004036c0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040a210
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x33c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x491641
push 1
push 0x625c94
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
push ebp
push edi
call esi
xor esi, esi
cmp edi, ebx
jle 0x4917d5
push 0x102
lea edx, [esp + 0x26]
push ebx
push edx
mov word [esp + 0x2c], bx
call fcn.005da970
mov ecx, dword [ebp + esi*4]
add esp, 0xc
push 0x80
lea eax, [esp + 0x24]
push eax
push ecx
call sub.IMM32.dll_ImmGetDescriptionW
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
call fcn.00409dd0
mov byte [esp + 0x33c], 1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x491727
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
jmp 0x49178d
push 0x208
lea ecx, [esp + 0x12a]
push ebx
push ecx
mov word [esp + 0x130], bx
call fcn.005da970
movzx eax, word [ebp + esi*4]
add esp, 0xc
push 0x104
lea edx, [esp + 0x128]
push edx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [esp + 0x124]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x491770
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040aee0
push 1
push 0x625c94
lea eax, [esp + 0x1c]
push eax
call fcn.0040aee0
mov byte [esp + 0x33c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4917ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
cmp esi, edi
jl 0x4916d1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 0x3b6
jle 0x491895
mov eax, 0x3b6
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.0041a270
lea edi, [esp + 0x14]
mov byte [esp + 0x33c], 2
call fcn.0040ab90
mov byte [esp + 0x33c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x491831
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0x3b
push esi
call fcn.005d37a2
add esp, 8
cmp eax, ebx
jne 0x491849
or eax, 0xffffffff
jmp 0x49184d
sub eax, esi
sar eax, 1
add eax, 1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.0041a270
lea edi, [esp + 0x14]
mov byte [esp + 0x33c], 3
call fcn.0040ab90
mov byte [esp + 0x33c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.0040a210
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x33c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4918d7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x32c
ret