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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c80d5
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x524ee0]
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]
mov dword [ebp - 0x33c], eax
call fcn.004187d0
mov esi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test al, al
jne 0x417b44
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x350]
call fcn.00444480
mov edx, dword [0x526340]
mov dword [ebp - 4], 0
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0x11
jne 0x417b81
call fcn.004a96f9
mov dword [0x526340], eax
push 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ecx, dword [0x526340]
mov edx, ecx
imul edx, ecx
imul edx, ecx
mov edi, eax
and edx, 0x80000003
jns 0x417ba8
dec edx
or edx, 0xfffffffc
inc edx
cmp edx, 2
jne 0x417bbb
push 0
push 0
push 0
push 0
push 0
push 0
call esi
test edi, edi
jne 0x417c92
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x320]
push str.getkeybordLayout_error_GetKeyboardLayoutList_check_
push eax
call fcn.00406040
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.00451390
add esp, 0x14
push eax
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 2
call fcn.004443a0
lea eax, [ebp - 0x338]
push eax
push 0x4dfc64
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 3
call fcn.00444920
mov ecx, eax
call fcn.00444730
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x338]
call fcn.00444690
cmp dword [ebp - 0x2e8], 0x10
jb 0x417c63
push dword [ebp - 0x2fc]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x320]
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 0x417f07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x417f07
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a7aa0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x324], ebx
call fcn.004188e0
test al, al
jne 0x417cdf
mov esi, 1
mov ecx, esi
mov edx, 0xdb
lea ebx, [ebx]
dec edx
lea eax, [ecx + esi]
lea esi, [ecx]
mov ecx, eax
jns 0x417cd0
mov dword [0x526340], eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
test edi, edi
jne 0x417d74
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x320]
push str.getkeybordLayout_error_GetKeyboardLayoutList_check_
push eax
call fcn.00406040
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.00451390
add esp, 0x14
push eax
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 5
call fcn.004443a0
lea eax, [ebp - 0x338]
push eax
push 0x4dfc64
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 6
call fcn.00444920
mov ecx, eax
call fcn.00444730
mov byte [ebp - 4], 5
jmp 0x417c41
xor esi, esi
or ebx, 0xffffffff
test edi, edi
je 0x417ea4
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x320], 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 0x417dc6
push 0x104
lea ecx, [ebp - 0x320]
call fcn.004085d0
mov eax, dword [ebp - 0x320]
push 0x104
push eax
mov eax, dword [ebp - 0x324]
push 0x1001
movzx eax, word [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [ebp - 0x320]
push dword [eax - 8]
push eax
call fcn.004a9e6a
mov edx, eax
add esp, 8
test edx, edx
js 0x417ff8
mov ecx, dword [ebp - 0x320]
cmp edx, dword [ecx - 8]
jg 0x417ff8
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x320]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 8
call fcn.004443a0
push eax
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 9
call fcn.00444f60
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 8
call fcn.00444690
cmp dword [ebp - 0x2e8], 0x10
jb 0x417e78
push dword [ebp - 0x2fc]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x320]
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 0x417e9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, edi
jb 0x417d81
lea ecx, [ebp - 0x350]
call fcn.00445410
test al, al
je 0x417ef4
push str.empty
lea ecx, [ebp - 0x338]
call fcn.00444440
lea eax, [ebp - 0x338]
push eax
push 0x4dfc64
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 0xa
call fcn.00444920
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0
call fcn.00444690
mov eax, dword [ebp - 0x324]
test eax, eax
je 0x417f07
push eax
call fcn.004a98f0
add esp, 4
lea ecx, [ebp - 0x31c]
call fcn.004465d0
mov edx, dword [0x526340]
mov byte [ebp - 4], 0xb
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0x10
jne 0x417f4b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x526340], edx
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x320], esi
mov edi, dword [0x526340]
mov ecx, 0x18
lea eax, [edi + 1]
imul eax, edi
cdq
idiv ecx
mov byte [ebp - 4], 0xc
cmp edx, 0x13
jne 0x417fb2
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x2d8]
add eax, dword [ebp + ecx*4 - 0x2dc]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x2f0]
add eax, dword [ebp + ecx*4 - 0x2f4]
imul eax, eax, 0x45
add edi, eax
cmp ecx, 0x2d4
jb 0x417f80
mov dword [0x526340], edi
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x31c]
call fcn.00449500
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x417fd9
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 0x418002
xor ecx, ecx
jmp 0x41801d
push 0x80070057
call fcn.00404410
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x324], eax
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418010
sub ecx, dword [ebp - 0x324]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x340]
push eax
call fcn.004512c0
add esp, 0x1c
mov edx, dword [eax]
lea eax, [esi - 0x10]
lea edi, [edx - 0x10]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x328], eax
cmp edi, eax
je 0x418109
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x324], ecx
jl 0x4180f4
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x4180f4
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x41808d
cmp ecx, dword [edi]
jne 0x41808d
mov esi, edi
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x4180ca
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x4180a1
call fcn.00409970
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.004a98f5
add esp, 0x10
mov ecx, dword [ebp - 0x324]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4180e9
mov edx, dword [ebp - 0x328]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x320], esi
jmp 0x418109
push dword [edx - 0xc]
lea ecx, [ebp - 0x320]
push edx
call fcn.00409670
mov esi, dword [ebp - 0x320]
mov edx, dword [ebp - 0x340]
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 0x41812c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2e8], 0x10
mov byte [ebp - 4], 0xc
jb 0x418147
push dword [ebp - 0x2fc]
call fcn.004a831e
add esp, 4
mov edi, dword [ebp - 0x33c]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x418168
call fcn.00409970
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0xb
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x418186
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x304], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x31c], 0x4dfc5c
jb 0x4181ab
push dword [ebp - 0x318]
call fcn.004a831e
add esp, 4
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x304], 0xf
mov dword [ebp - 0x308], 0
mov byte [ebp - 0x318], 0
call fcn.004466d0
lea ecx, [ebp - 0x350]
mov dword [ebp - 4], 0xffffffff
call fcn.00444690
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.004a8b24
mov esp, ebp
pop ebp
ret