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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c58c8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
call fcn.00442860
mov dword [ebp - 4], 0
call fcn.00417c50
test al, al
jne 0x416bb7
mov edi, dword [0x520340]
mov eax, edi
cdq
sub eax, edx
xor ecx, ecx
mov ebx, eax
sar ebx, 1
mov esi, 0xce
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ebx
test ebx, ebx
jle 0x416baf
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
xor edx, edx
lea esp, [esp]
test edi, edi
jle 0x416ba1
mov eax, edx
mov ecx, edi
add esi, eax
dec eax
dec ecx
jne 0x416b98
mov ecx, dword [ebp - 0x4c]
add edx, ecx
dec ebx
jne 0x416b90
mov ebx, dword [ebp - 0x50]
mov edi, dword [0x520340]
inc ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, esi
jl 0x416b77
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call edi
mov esi, eax
test esi, esi
jne 0x416c7b
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4c]
push str.getkeybordLayout_error_GetKeyboardLayoutList_check_
push eax
call fcn.00406160
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044ef60
add esp, 0x14
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00442780
lea eax, [ebp - 0x64]
push eax
push 0x4d968c
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00442a70
cmp dword [ebp - 0x14], 0x10
jb 0x416c4f
push dword [ebp - 0x28]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x416e67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x416e67
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
add esp, 4
mov dword [ebp - 0x50], eax
push eax
push esi
call edi
mov edi, eax
test edi, edi
jne 0x416d0f
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4c]
push str.getkeybordLayout_error_GetKeyboardLayoutList_check_
push eax
call fcn.00406160
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044ef60
add esp, 0x14
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00442780
lea eax, [ebp - 0x64]
push eax
push 0x4d968c
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
mov byte [ebp - 4], 5
jmp 0x416c36
xor esi, esi
or ebx, 0xffffffff
test edi, edi
je 0x416e16
lea esp, [esp]
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 7
jge 0x416d5c
push 0x104
lea ecx, [ebp - 0x4c]
call fcn.004088a0
mov eax, dword [ebp - 0x4c]
push 0x104
push eax
mov eax, dword [ebp - 0x50]
push 0x1001
movzx eax, word [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [ebp - 0x4c]
push dword [eax - 8]
push eax
call fcn.004a773a
mov edx, eax
add esp, 8
test edx, edx
js 0x416ed6
mov ecx, dword [ebp - 0x4c]
cmp edx, dword [ecx - 8]
jg 0x416ed6
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.00442780
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 9
call fcn.00443340
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.00442a70
cmp dword [ebp - 0x14], 0x10
jb 0x416ded
push dword [ebp - 0x28]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416e0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, edi
jb 0x416d20
lea ecx, [ebp - 0x78]
call fcn.004437f0
test al, al
je 0x416e57
push str.empty
lea ecx, [ebp - 0x64]
call fcn.00442820
lea eax, [ebp - 0x64]
push eax
push 0x4d968c
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00442a70
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x416e67
push eax
call fcn.004a7190
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0xb
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 0xc
call fcn.00417970
test al, al
jne 0x416e99
inc dword [0x5205b4]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x416eb7
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x416ee0
xor ecx, ecx
jmp 0x416ef2
push 0x80070057
call fcn.00404480
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416ee8
sub ecx, dword [ebp - 0x50]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x7c]
push eax
call fcn.0044ee90
add esp, 0x1c
mov edx, dword [eax]
lea eax, [esi - 0x10]
lea edi, [edx - 0x10]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x54], eax
cmp edi, eax
je 0x416fc6
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x50], ecx
jl 0x416fb7
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x416fb7
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x416f59
cmp ecx, dword [edi]
jne 0x416f59
mov esi, edi
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x416f96
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x416f6d
call fcn.0040c2e0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004a7195
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x416faf
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x4c], esi
jmp 0x416fc6
push dword [edx - 0xc]
lea ecx, [ebp - 0x4c]
push edx
call fcn.00409950
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416fe6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0xc
jb 0x416ffb
push dword [ebp - 0x28]
call fcn.004a5bbe
add esp, 4
mov edi, dword [ebp - 0x68]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x417019
call fcn.0040c2e0
mov dword [edi + 8], eax
mov edi, dword [0x520340]
lea ecx, [edi + 1]
lea eax, [edi + 2]
imul eax, ecx
imul eax, edi
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 5
jne 0x41705c
xor ebx, ebx
test edi, edi
je 0x417053
mov eax, edi
mov ecx, edi
cdq
sub eax, edx
and ecx, 1
mov edi, eax
add ebx, ecx
sar edi, 1
jne 0x417041
mov dword [0x520340], ebx
or ebx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x417077
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x48], 0x4d9684
jb 0x417093
push dword [ebp - 0x44]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00444ab0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret