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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6988
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x51fee0]
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 ecx, dword [0x521340]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0xd
idiv ecx
cmp edx, 4
jne 0x416ec2
dec dword [0x521580]
push 0
lea ecx, [ebp - 0x74]
call fcn.00443cd0
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
mov dword [ebp - 4], 0
call edi
mov esi, eax
test esi, esi
jne 0x416f97
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
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.004060e0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00450030
add esp, 0x14
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00443bf0
lea eax, [ebp - 0x60]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.00444170
mov ecx, eax
call fcn.00443f80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00443ee0
cmp dword [ebp - 0x14], 0x10
jb 0x416f6b
push dword [ebp - 0x28]
call fcn.004a6c2e
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 0x417187
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x417187
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a63b0
add esp, 4
mov dword [ebp - 0x50], eax
push eax
push esi
call edi
mov edi, eax
test edi, edi
jne 0x41702b
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
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.004060e0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00450030
add esp, 0x14
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00443bf0
lea eax, [ebp - 0x60]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.00444170
mov ecx, eax
call fcn.00443f80
mov byte [ebp - 4], 5
jmp 0x416f52
xor esi, esi
or ebx, 0xffffffff
test edi, edi
je 0x417136
jmp 0x417040
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
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 0x41707c
push 0x104
lea ecx, [ebp - 0x4c]
call fcn.00408680
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.004a872a
mov edx, eax
add esp, 8
test edx, edx
js 0x4171e7
mov ecx, dword [ebp - 0x4c]
cmp edx, dword [ecx - 8]
jg 0x4171e7
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.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.00443bf0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 9
call fcn.004447e0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.00443ee0
cmp dword [ebp - 0x14], 0x10
jb 0x41710d
push dword [ebp - 0x28]
call fcn.004a6c2e
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 0x41712d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, edi
jb 0x417040
lea ecx, [ebp - 0x74]
call fcn.00444c90
test al, al
je 0x417177
push str.empty
lea ecx, [ebp - 0x60]
call fcn.00443c90
lea eax, [ebp - 0x60]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.00443ee0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x417187
push eax
call fcn.004a8200
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0xb
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x4171c8
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 0x4171f1
xor ecx, ecx
jmp 0x41720a
push 0x80070057
call fcn.004044c0
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417200
sub ecx, dword [ebp - 0x50]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x78]
push eax
call fcn.0044ff60
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0xe
cmp edx, edi
je 0x417277
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x417268
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x417268
push edx
call fcn.00404880
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x417260
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x50]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
jmp 0x417277
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004097a0
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x78]
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 0x417297
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 0x4172ac
push dword [ebp - 0x28]
call fcn.004a6c2e
add esp, 4
call fcn.00417870
test al, al
jne 0x4172d1
mov edi, 1
mov eax, edi
mov edx, 0x66
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x4172c1
mov dword [0x521340], ecx
mov edi, dword [ebp - 0x64]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4172ef
call fcn.0040c350
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 0x41730d
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], 0x4da4e4
jb 0x417329
push dword [ebp - 0x44]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00446040
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
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.004a7434
mov esp, ebp
pop ebp
ret