Function at 0x41c4b0
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 0x41c533
push 0
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00412a30
test al, al
je 0x41c533
mov esi, dword [ebx]
mov edx, dword [0x458d34]
sub esi, 8
lea ecx, [esi + 0xa]
call fcn.00412330
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.0042ea70
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 0x41c5ca
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00412a30
test al, al
je 0x41c5ca
lea ecx, [ebp - 0x14]
call fcn.004199e0
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov edx, dword [0x458d34]
lea esi, [ebx - 0x16]
add esi, eax
lea ecx, [esi + 0xa]
call fcn.00412330
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.0042ea70
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.0042ea70
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 0x41c670
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00412a30
test al, al
je 0x41c670
lea ecx, [ebp - 0x14]
call fcn.004199e0
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov edx, dword [0x458d34]
lea esi, [ebx + 2]
add esi, eax
lea ecx, [esi + 0xa]
call fcn.00412330
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.0042ea70
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.0042ea70
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
je 0x41c71e
mov eax, dword [ebx + 4]
cmp word [eax], 0x5c
jne 0x41c71e
mov ecx, ebx
call fcn.0041c060
test eax, eax
jne 0x41c724
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 0x41c71e
push 1
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00412a30
test al, al
je 0x41c71e
mov esi, dword [ebx]
mov edx, dword [0x458d34]
add esi, 4
lea ecx, [esi + 0xa]
call fcn.00412330
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.0042ea70
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