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

Disassembly:
sub esp, 0x20
mov eax, dword [0x7f91f01c]
test eax, eax
nop
push ebx
push esi
push edi
push ebp
je 0x7f8f325e
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0x7f91f040
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7f91f01c]
test eax, eax
je 0x7f8f328a
push 0x7f91f040
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov eax, dword [0x7f91f218]
test eax, eax
je 0x7f8f33bf
mov eax, dword [0x7f91f030]
test eax, eax
jne 0x7f8f33b6
push 0
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
call esi
mov dword [0x7f91f034], eax
test eax, eax
je 0x7f8f33ac
shl eax, 2
push 0
lea ecx, [eax + eax*4]
push ecx
call fcn.7f911900
mov dword [0x7f91f038], eax
test eax, eax
jne 0x7f8f331b
mov dword [0x7f91f034], 0
mov eax, dword [0x7f91f01c]
test eax, eax
je 0x7f8f3306
mov ecx, dword [eax + 8]
push ecx
call fcn.7f911a10
mov ecx, dword [0x7f91f01c]
push ecx
call fcn.7f9119e0
mov dword [0x7f91f01c], 0
push 0x7f91f040
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [0x7f91f038]
mov ecx, dword [0x7f91f034]
push eax
push ecx
call esi
mov esi, dword [0x7f91f034]
mov ecx, dword [0x7f91f038]
lea edx, [esi*4]
lea ebx, [ecx + esi*4 - 4]
test esi, esi
lea eax, [edx + edx*4]
lea ebp, [eax + ecx - 0x14]
je 0x7f8f33ac
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 7
push 0x20
sub ebx, 4
sub ebp, 0x14
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
dec esi
push eax
push 0x58
xor eax, eax
mov ax, word [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [ebx + 4]
test esi, esi
mov dword [ebp + 0x14], ecx
mov edx, dword [esp + 0x20]
mov dword [ebp + 0x18], edx
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x20], ecx
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x24], edx
jne 0x7f8f3354
mov dword [0x7f91f030], 1
mov eax, dword [0x7f91f218]
test eax, eax
jne 0x7f8f341c
call dword [sym.imp.KERNEL32.dll_GetACP]
sub eax, 0x4e2
cmp eax, 7
ja case.0x7f8f33cf.1252
jmp dword [eax*4 + 0x7f8f34f0]
mov byte [0x7f91f02c], 0
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xee
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xcc
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xa1
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xa2
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xb1
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xb2
jmp 0x7f8f341c
mov byte [0x7f91f02c], 0xba
call fcn.7f8f35f0
test eax, eax
je 0x7f8f32de
push 0x42
push 0x614
call fcn.7f911900
mov dword [0x7f91f01c], eax
test eax, eax
je 0x7f8f32de
push 0x42
mov dword [eax], 4
push 0xf0
call fcn.7f911900
mov ecx, dword [0x7f91f01c]
mov dword [ecx + 8], eax
mov ecx, dword [0x7f91f01c]
mov eax, dword [ecx + 8]
test eax, eax
je 0x7f8f32de
mov edx, 1
mov word [ecx + 0x612], dx
mov eax, dword [0x7f91f01c]
mov word [eax + 0x610], 0x20
mov eax, dword [0x7f91f01c]
mov dword [eax + 4], edx
mov eax, dword [0x7f91f01c]
mov eax, dword [eax + 8]
add eax, 0x3c
inc edx
add eax, 0x3c
mov ecx, edx
neg ecx
mov dword [eax - 0x3c], ecx
cmp edx, 3
jl 0x7f8f349b
mov dword [eax], 0
mov eax, dword [0x7f91f01c]
add eax, 0x5dc
mov ecx, dword [0x7f91f01c]
add ecx, 0xc
cmp ecx, eax
ja 0x7f8f34d8
mov edx, dword [ecx + 0xc]
add ecx, 0x30
or edx, 4
cmp ecx, eax
mov dword [ecx - 0x24], edx
jbe 0x7f8f34c8
push 0x7f91f040
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret