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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083608
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x100a6250]
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.10006f60
mov ecx, eax
test ecx, ecx
je 0x1003e8ad
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.100456c0
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.100456c0
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 0x1003e7a6
mov ebx, dword [esi - 0xc]
test ebx, ebx
je 0x1003e813
lea eax, [ebx - 1]
test eax, eax
js 0x1003e8b7
cmp eax, ebx
jge 0x1003e8b7
cmp dword [esi - 4], 1
jle 0x1003e505
push ebx
lea ecx, [ebp - 0x41c]
call fcn.10006ea0
mov esi, dword [ebp - 0x41c]
lea eax, [ebx - 1]
xor ecx, ecx
mov word [esi + eax*2], cx
test ebx, ebx
js 0x1003e8b7
cmp ebx, dword [esi - 8]
jg 0x1003e8b7
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 0x1003e555
push ebx
call fcn.1000cfc0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x438], eax
jmp 0x1003e585
mov ecx, dword [ebx]
test ecx, ecx
je 0x1003e564
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1003e570
call fcn.10006f60
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 2
push esi
lea ecx, [ebp - 0x438]
call fcn.1002dd20
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 0x1003e5fd
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x1003e5e2
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x1003e5e2
push edx
call fcn.1000cfc0
add esp, 4
mov dword [ebp - 0x434], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x1003e5d7
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 0x1003e5f7
push dword [eax - 0xc]
lea ecx, [ebp - 0x41c]
push eax
call fcn.10007190
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 0x1003e616
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1008e4ec
push esi
call fcn.1004c9d0
add esp, 8
test eax, eax
je 0x1003e72d
push 0x1008e4f4
push esi
call fcn.1004c9d0
add esp, 8
test eax, eax
je 0x1003e72d
cmp dword [esi - 0xc], 0
jl 0x1003e8b7
mov ax, word [ebp - 0x218]
cmp ax, word [esi]
je 0x1003e72d
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1003e691
add dword [ebp - 0x420], 2
lea ecx, [ebp - 0x41c]
call fcn.10014540
mov esi, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x424], edi
jmp 0x1003e4c0
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 0x1003e708
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x42c]
ja 0x1003e708
jb 0x1003e6ca
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x430]
jae 0x1003e708
cmp dword [esi - 4], 1
jle 0x1003e6e4
push dword [esi - 0xc]
lea ecx, [ebp - 0x41c]
call fcn.10006ea0
mov esi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x444]
push esi
call fcn.1003db70
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.10014540
mov eax, dword [ebp - 0x420]
mov esi, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x424], edi
jmp 0x1003e4b1
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 0x1003e79b
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x1003e771
cmp dword [esi - 8], 0
jl 0x1003e8b7
xor ecx, ecx
mov dword [esi - 0xc], 0
mov word [esi], cx
mov dword [ebp - 0x424], edi
jmp 0x1003e4c0
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1003e785
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 0x1003e4c0
mov dword [ebp - 0x428], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x434], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x1003e8b7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or ecx, eax
jge 0x1003e7e3
push ebx
lea ecx, [ebp - 0x41c]
call fcn.10007050
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 0x1003e8b7
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov eax, dword [ebp - 0x420]
add eax, 2
jmp 0x1003e4b1
mov ebx, dword [ebp - 0x444]
mov ecx, ebx
push 1
push 0x10087e6c
call fcn.100170b0
mov ecx, dword [ebx + 0x10]
cmp ecx, 2
jbe 0x1003e843
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1003e839
mov eax, dword [ebx]
cmp word [eax + 2], 0x3a
jne 0x1003e845
cmp ecx, 2
jae 0x1003e873
push 0
push 0x10087e70
mov ecx, ebx
call fcn.10006920
push 2
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
push 0
call fcn.1003f100
push 1
push 0x10087e6c
mov ecx, ebx
call fcn.100170b0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003e88f
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.1001a767
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10006e50
push 0x80070057
call fcn.10006e50
int3