Function at 0x40f030
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f060
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x47a0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004378c0
push 0x20a
lea eax, [ebp - 0x634]
push 0
push eax
call fcn.004378c0
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004378c0
xorps xmm0, xmm0
mov dword [ebp - 0x63c], 0
xor eax, eax
mov dword [ebp - 0x638], 7
movups xmmword [ebp - 0x64c], xmm0
add esp, 0x24
mov word [ebp - 0x64c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x684], eax
mov dword [ebp - 0x680], eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x40f275
xor eax, eax
mov dword [ebp - 0x678], eax
nop word [eax + eax]
mov ecx, dword [ebp - 0x63c]
movzx edx, word [ebp + eax*2 - 0x21c]
mov edi, dword [ebp - 0x638]
mov dword [ebp - 0x670], edx
mov dword [ebp - 0x66c], ecx
cmp ecx, edi
jae 0x40f14d
lea eax, [ecx + 1]
cmp edi, 8
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x40f25a
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40f407
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x67c], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40f17a
mov esi, 0x7ffffffe
jmp 0x40f198
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x40f190
mov esi, 0x7ffffffe
jmp 0x40f198
lea eax, [ecx + edi]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x64c]
call fcn.0040d7b0
mov ecx, dword [ebp - 0x67c]
mov dword [ebp - 0x63c], ecx
mov ecx, dword [ebp - 0x66c]
add ecx, ecx
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x674], eax
push ecx
lea esi, [ecx + eax]
mov dword [ebp - 0x66c], esi
cmp edi, 8
jb 0x40f22f
mov esi, dword [ebp - 0x64c]
push esi
push eax
call fcn.00437330
mov eax, dword [ebp - 0x66c]
lea edi, [edi*2 + 2]
mov ecx, dword [ebp - 0x670]
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
cmp edi, 0x1000
jb 0x40f220
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40f411
mov esi, ecx
push edi
push esi
lfence
call fcn.00435d98
add esp, 8
jmp 0x40f24e
lea ecx, [ebp - 0x64c]
push ecx
push eax
call fcn.00437330
mov ecx, dword [ebp - 0x670]
add esp, 0xc
xor eax, eax
mov word [esi], cx
mov word [esi + 2], ax
mov eax, dword [ebp - 0x674]
mov dword [ebp - 0x64c], eax
mov eax, dword [ebp - 0x678]
inc eax
mov dword [ebp - 0x678], eax
cmp eax, 3
jl 0x40f100
jmp 0x40f356
push 0x47080c
lea ecx, [ebp - 0x664]
call fcn.00409e60
mov esi, eax
lea eax, [ebp - 0x64c]
cmp eax, esi
je 0x40f316
mov ecx, dword [ebp - 0x638]
cmp ecx, 8
jb 0x40f2d5
mov edx, dword [ebp - 0x64c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f2cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f40c
push ecx
push edx
call fcn.00435d98
add esp, 8
mov dword [ebp - 0x63c], 0
xor eax, eax
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x64c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x63c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x650]
cmp ecx, 8
jb 0x40f356
mov edx, dword [ebp - 0x664]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f34c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f40c
push ecx
push edx
call fcn.00435d98
add esp, 8
cmp dword [ebp - 0x638], 8
lea ecx, [ebp - 0x428]
push 0x20a
push ecx
lea ecx, [ebp - 0x680]
push ecx
lea ecx, [ebp - 0x684]
push ecx
lea ecx, [ebp - 0x668]
push ecx
push 0x20a
lea ecx, [ebp - 0x634]
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov ecx, dword [ebp - 0x638]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x668]
mov dword [ebp - 0x668], esi
cmp ecx, 8
jb 0x40f3ea
mov edx, dword [ebp - 0x64c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f3e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f411
push ecx
push edx
call fcn.00435d98
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004356fe
mov esp, ebp
pop ebp
ret
call fcn.004018f0
call fcn.0044118c
call fcn.0044118c
int3