Function at 0x10054af0
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1009be11
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x690]
mov dword fs:[0], eax
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x48a]
xor eax, eax
push ebx
push ecx
xor edi, edi
mov word [esp + 0x490], ax
call fcn.10079c60
push 0x206
lea eax, [esp + 0x86]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x8c], dx
call fcn.10079c60
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
mov dword [esp + 0x6b0], ebx
push 0x206
lea eax, [esp + 0x29a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x2a0], dx
call fcn.10079c60
add esp, 0x24
push 0x104
lea ecx, [esp + 0x280]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
lea eax, [esp + 0x27c]
mov word [esp + 0x40], dx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10054be2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x280]
lea esi, [esp + 0x40]
call fcn.10007450
mov byte [esp + 0x698], 1
lea eax, [esp + 0x20]
push eax
mov ecx, esi
push ecx
mov ecx, 3
xor edx, edx
call fcn.10006760
mov byte [esp + 0x698], 2
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100073a0
mov byte [esp + 0x698], 1
mov ebp, 8
cmp dword [esp + 0x38], ebp
jb 0x10054c50
mov edx, dword [esp + 0x24]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov esi, 7
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
cmp dword [esp + 0x54], ebp
jae 0x10054c72
lea eax, [esp + 0x40]
push 0x104
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x104
lea ecx, [esp + 0x49c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10054cef
lea eax, [esp + 0x74]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10054cb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
lea esi, [esp + 0x5c]
call fcn.10007450
push 0x100ace3c
mov ebx, 4
xor eax, eax
mov edx, esi
call fcn.10007c90
mov edi, eax
inc edi
neg edi
sbb edi, edi
add edi, 2
xor ebx, ebx
lea esi, [ebx + 7]
mov byte [esp + 0x698], bl
cmp dword [esp + 0x54], ebp
jb 0x10054d09
mov edx, dword [esp + 0x40]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov dword [esp + 0x698], 0xffffffff
cmp dword [esp + 0x70], ebp
jb 0x10054d36
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], dx
mov eax, edi
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.100755ed
add esp, 0x688
ret