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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aede8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x614cb0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], eax
mov al, byte [esi + 0x15d]
mov dword [ebp - 4], 0
test al, al
je 0x4e5572
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004e86a0
mov ecx, edi
call fcn.004e74e0
push eax
mov ecx, edi
call fcn.004e93f0
cmp dword [ebp + 8], 0x20
jb 0x4e5716
lea ebx, [esi + 0x40]
or edi, 0xffffffff
push edi
mov ecx, ebx
call fcn.004ea0a0
test eax, eax
jne 0x4e5716
mov eax, dword [esi + 0x120]
test eax, eax
je 0x4e55ab
mov ecx, esi
call fcn.00571f61
mov dword [ebp - 4], edi
jmp 0x4e5724
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebp - 0x38]
push 6
push ecx
and eax, 0xffff
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [ebp - 0x38]
push edx
call fcn.00556a30
add esp, 4
lea ecx, [ebp - 0x18]
lea edx, [ebp + 8]
push 1
push ecx
push 1
push edx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov cl, byte [esi + 0x11c]
test cl, cl
jne 0x4e55f9
test eax, eax
jne 0x4e566b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x4e5742
mov cl, byte [esi + 0x11c]
mov dl, byte [ebp + 8]
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], cl
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xf], dl
call fcn.00575c71
lea ecx, [ebp - 0x10]
test ecx, ecx
jne 0x4e5637
xor eax, eax
jmp 0x4e565e
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00557520
mov eax, esp
lea ecx, [ebp - 0x10]
push edi
push ecx
push eax
call fcn.005760b2
mov dx, word [eax]
mov byte [esi + 0x11c], 0
mov dword [ebp - 0x18], edx
mov ecx, ebx
call fcn.004e86b0
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0xc4]
cmp eax, ecx
jge 0x4e56a4
push eax
lea ecx, [esi + 0x58]
call fcn.0043cde0
mov eax, dword [eax]
mov edx, dword [esi + 0xc8]
add eax, edx
push 1
push 0
push eax
mov eax, dword [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004e7620
jmp 0x4e56b1
mov ecx, dword [ebp - 0x18]
push 0
push ecx
mov ecx, ebx
call fcn.004e7540
mov edx, dword [esi + 0xc8]
mov edi, dword [esi + 0xc4]
inc edx
inc edi
mov dword [esi + 0xc8], edx
mov eax, dword [esi + 0x60]
cmp edi, eax
jge 0x4e56e2
push edi
lea ecx, [esi + 0x58]
call fcn.0043cde0
mov edx, dword [eax]
inc edx
inc edi
mov dword [eax], edx
mov eax, dword [esi + 0x60]
cmp edi, eax
jl 0x4e56cc
mov edx, dword [esi + 0xc4]
mov ecx, ebx
push edx
call fcn.004e76b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov al, byte [esi + 0x15d]
test al, al
je 0x4e570f
mov ecx, ebx
call fcn.004e74e0
push eax
mov ecx, ebx
call fcn.004e93f0
mov ecx, ebx
call fcn.004e8730
mov ecx, esi
call fcn.00571f61
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00575ae8
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov cl, byte [ebp + 8]
mov byte [esi + 0x11c], cl
mov ecx, esi
call fcn.00571f61
mov dword [ebp - 4], edi
jmp 0x4e5724