Function at 0x100af5b0
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x444], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edi, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x424], edi
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100afaad
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x41c], esi
push 0x200
lea eax, [ebp - 0x418]
mov dword [ebp - 4], edi
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x418]
xorps xmm0, xmm0
movlpd qword [ebp - 0x430], xmm0
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x440], ecx
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x420], eax
nop word [eax + eax]
movzx eax, word [eax]
test ax, ax
jne 0x100af9a6
mov ebx, dword [esi - 0xc]
test ebx, ebx
je 0x100afa13
lea eax, [ebx - 1]
test eax, eax
js 0x100afab7
cmp eax, ebx
jge 0x100afab7
cmp dword [esi - 4], 1
jle 0x100af705
push ebx
lea ecx, [ebp - 0x41c]
call fcn.10008660
mov esi, dword [ebp - 0x41c]
lea eax, [ebx - 1]
xor ecx, ecx
mov word [esi + eax*2], cx
test ebx, ebx
js 0x100afab7
cmp ebx, dword [esi - 8]
jg 0x100afab7
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
xorps xmm0, xmm0
movlpd qword [ebp - 0x450], xmm0
lea ebx, [esi - 0x10]
movlpd qword [ebp - 0x430], xmm0
cmp dword [esi - 0xc], 2
jg 0x100af755
push ebx
call fcn.10008570
add esp, 4
add eax, 0x10
mov dword [ebp - 0x438], eax
jmp 0x100af785
mov ecx, dword [ebx]
test ecx, ecx
je 0x100af764
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x100af770
call fcn.100088b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 2
push esi
lea ecx, [ebp - 0x438]
call fcn.100992a0
mov eax, dword [ebp - 0x438]
or edi, 2
mov dword [ebp - 0x424], edi
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x428], edx
cmp edx, ebx
je 0x100af7fd
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x100af7e2
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x100af7e2
push edx
call fcn.10008570
add esp, 4
mov dword [ebp - 0x434], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100af7d7
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x434]
lea esi, [eax + 0x10]
mov dword [ebp - 0x41c], esi
jmp 0x100af7f7
push dword [eax - 0xc]
lea ecx, [ebp - 0x41c]
push eax
call fcn.1000b940
mov esi, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x428]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100af816
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1013de8c
push esi
call fcn.100e9de8
add esp, 8
test eax, eax
je 0x100af92d
push 0x1013de94
push esi
call fcn.100e9de8
add esp, 8
test eax, eax
je 0x100af92d
cmp dword [esi - 0xc], 0
jl 0x100afab7
mov ax, word [ebp - 0x218]
cmp ax, word [esi]
je 0x100af92d
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100af891
add dword [ebp - 0x420], 2
lea ecx, [ebp - 0x41c]
call fcn.10014700
mov esi, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], edi
jmp 0x100af6c0
push 0
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100af908
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x42c]
ja 0x100af908
jb 0x100af8ca
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x430]
jae 0x100af908
cmp dword [esi - 4], 1
jle 0x100af8e4
push dword [esi - 0xc]
lea ecx, [ebp - 0x41c]
call fcn.10008660
mov esi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x444]
push esi
call fcn.10068a80
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x41c]
call fcn.10014700
mov eax, dword [ebp - 0x420]
mov esi, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x424], edi
jmp 0x100af6b1
mov eax, dword [ebp - 0x420]
lea edx, [esi - 0x10]
mov ebx, dword [edx]
add eax, 2
cmp dword [edx + 4], 0
mov dword [ebp - 0x420], eax
je 0x100af99b
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x100af971
cmp dword [esi - 8], 0
jl 0x100afab7
xor ecx, ecx
mov dword [esi - 0xc], 0
mov word [esi], cx
mov dword [ebp - 0x424], edi
jmp 0x100af6c0
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100af985
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x424], edi
jmp 0x100af6c0
mov dword [ebp - 0x428], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x434], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x100afab7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or ecx, eax
jge 0x100af9e3
push ebx
lea ecx, [ebp - 0x41c]
call fcn.1000b310
mov esi, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x428]
mov word [esi + eax*2], cx
cmp ebx, dword [esi - 8]
jg 0x100afab7
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov eax, dword [ebp - 0x420]
add eax, 2
jmp 0x100af6b1
mov ebx, dword [ebp - 0x444]
mov ecx, ebx
push 1
push 0x101310e0
call fcn.10018a00
mov ecx, dword [ebx + 0x10]
cmp ecx, 2
jbe 0x100afa43
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100afa39
mov eax, dword [ebx]
cmp word [eax + 2], 0x3a
jne 0x100afa45
cmp ecx, 2
jae 0x100afa73
push 0
push 0x101308ac
mov ecx, ebx
call fcn.1000c9f0
push 2
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
push 0
call fcn.100b0190
push 1
push 0x101310e0
mov ecx, ebx
call fcn.10018a00
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100afa8f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c495f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008520
push 0x80070057
call fcn.10008520
int3