Function at 0x41a730
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], 8
push esi
push edi
mov dword [ebp - 4], ebx
cmp dword [ebx], 8
mov eax, dword [ebx + 4]
mov dword [ebp - 8], str.___
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 8
jb 0x41a7b3
push 0
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00411fa0
test al, al
je 0x41a7b3
mov esi, dword [ebx]
mov edx, dword [0x454e8c]
sub esi, 8
lea ecx, [esi + 0xa]
call fcn.00411890
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
mov ecx, dword [ebx]
sub ecx, 8
push ecx
mov ecx, dword [ebx + 4]
add ecx, 8
push ecx
push dword [edi + 4]
call fcn.00441e40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0x16
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], 0x16
mov dword [ebp - 0x10], str.SystemRoot
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x16
jb 0x41a84a
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00411fa0
test al, al
je 0x41a84a
lea ecx, [ebp - 0x14]
call fcn.004181f0
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov edx, dword [0x454e8c]
lea esi, [ebx - 0x16]
add esi, eax
lea ecx, [esi + 0xa]
call fcn.00411890
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
push ebx
push dword [ebp - 0x10]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [edi + 4]
call fcn.00441e40
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [eax]
sub ecx, 0x16
push ecx
mov ecx, dword [eax + 4]
add ecx, 0x16
push ecx
mov ecx, dword [edi + 4]
add ecx, ebx
push ecx
call fcn.00441e40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0x12
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], 0x12
mov dword [ebp - 0x10], str.system32_
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x12
jb 0x41a8f0
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00411fa0
test al, al
je 0x41a8f0
lea ecx, [ebp - 0x14]
call fcn.004181f0
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov edx, dword [0x454e8c]
lea esi, [ebx + 2]
add esi, eax
lea ecx, [esi + 0xa]
call fcn.00411890
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
push ebx
push dword [ebp - 0x10]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [edi + 4]
call fcn.00441e40
mov eax, dword [edi + 4]
mov ecx, ebx
shr ecx, 1
mov edx, 0x5c
add esp, 0xc
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 4]
add ecx, 2
add ecx, ebx
push dword [eax]
push dword [eax + 4]
push ecx
call fcn.00441e40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
je 0x41a99e
mov eax, dword [ebx + 4]
cmp word [eax], 0x5c
jne 0x41a99e
mov ecx, ebx
call fcn.0041a300
test eax, eax
jne 0x41a9a4
cmp dword [ebx], 0x10
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], str.Windows
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x10
jb 0x41a99e
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00411fa0
test al, al
je 0x41a99e
mov esi, dword [ebx]
mov edx, dword [0x454e8c]
add esi, 4
lea ecx, [esi + 0xa]
call fcn.00411890
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
mov ecx, dword [edi + 4]
mov ax, word [0x7ffe0030]
mov word [ecx], ax
mov ecx, 0x3a
mov eax, dword [edi + 4]
mov word [eax + 2], cx
push dword [ebx]
mov ecx, dword [edi + 4]
push dword [ebx + 4]
add ecx, 4
push ecx
call fcn.00441e40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lock inc dword [ebx - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret