Function at 0x101f5b8
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
xor ebx, ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x18
pop edi
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x34], eax
push 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x101f4db
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
push 0x1f0003
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x101f4db
mov ecx, dword fs:[0x18]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov eax, 0x4830
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x30]
push esi
push dword [eax + 0x18]
call edi
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x101f40a
mov dword [ebp + 8], 0xc000009a
jmp 0x101f4c0
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 8]
push esi
push esi
push 0x70050
push eax
push esi
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov dword [ebp + 8], eax
cmp eax, 0x103
jne 0x101f44b
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x101f44b
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtResetEvent]
cmp dword [ebp + 8], 0xc0000023
jne 0x101f4ff
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add dword [ebp - 0x10], 0x2400
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call edi
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x101f40a
mov dword [ebp + 8], 0xc000009a
cmp ebx, esi
je 0x101f4bb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp + 8], esi
jge 0x101f4db
cmp dword [ebp - 8], esi
je 0x101f4db
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 4], esi
je 0x101f4eb
push dword [ebp - 4]
call edi
cmp dword [ebp - 0xc], esi
je 0x101f4f5
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 8], esi
jge 0x101f67a
mov ecx, dword fs:[0x18]
mov eax, 0x7e8
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [ecx + 0x30]
jmp 0x101f596
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push ebx
push esi
push esi
push 0x7400c
push eax
push esi
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov dword [ebp + 8], eax
cmp eax, 0x103
jne 0x101f55c
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x101f55c
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtResetEvent]
cmp dword [ebp + 8], 0xc0000023
jne 0x101f5ab
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add dword [ebp - 0x10], 0x800
mov eax, dword fs:[0x18]
push dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call edi
mov ebx, eax
cmp ebx, esi
jne 0x101f51d
jmp 0x101f49c
cmp dword [ebp + 8], esi
jl 0x101f4a3
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebx]
mov eax, dword fs:[0x18]
imul edi, edi, 0x90
mov eax, dword [eax + 0x30]
add edi, 0x30
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x101f49c
push edi
push esi
push eax
call fcn.0100b756
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov eax, dword [ebx]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 8], eax
add esp, 0xc
lea edx, [ecx + 0x30]
lea eax, [ebx + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], esi
cmp dword [ebx], esi
jbe 0x101f67a
lea ecx, [edx + 0x10]
mov edi, 0x90
jmp 0x101f62c
mov edx, dword [ebp - 0x10]
mov dword [edx], esi
mov edx, dword [eax]
mov dword [ecx - 8], edx
mov edx, dword [eax + 4]
mov dword [ecx - 4], edx
mov edx, dword [eax + 8]
inc dword [ebp - 0x14]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
add dword [ebp - 0x10], edi
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 8], edx
mov dl, byte [eax + 0x1b]
mov byte [ecx + 0xc], dl
mov dl, byte [eax + 0x18]
mov byte [ecx + 0x10], dl
mov dl, byte [eax + 0x19]
mov byte [ecx + 0x11], dl
mov dl, byte [eax + 0x1a]
mov byte [ecx + 0x12], dl
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x14]
add eax, 0x20
add ecx, edi
cmp edx, dword [ebx]
jb 0x101f629
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x101f4a3