Function at 0x42c510
Capabilities:
Get disk information
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565363
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0xfc6800]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
push 0
push 0x11
lea eax, [ebp - 0x38]
push eax
call fcn.00527110
add esp, 0xc
push 0xff
push 0
lea ecx, [ebp - 0x244]
push ecx
call fcn.00527110
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x42c598
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
je 0x42c598
cmp dword [ebp + 0xc], 0
je 0x42c598
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x42c598
cmp dword [ebp + 0x10], 0
je 0x42c598
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
test ecx, ecx
jne 0x42c59f
xor eax, eax
jmp 0x42cc39
push 3
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.00529f16
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x23e], cx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x42c5d6
xor eax, eax
jmp 0x42cc39
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x42c7f9
push 0x3b
mov eax, dword [ebp + 8]
push eax
call fcn.00525fb5
add esp, 8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x42c625
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [ebp + 8]
sar ecx, 1
mov dword [ebp - 0x2e8], ecx
jmp 0x42c637
mov edx, dword [ebp + 8]
push edx
call fcn.00526686
add esp, 4
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x22
jb 0x42c64d
mov dword [ebp - 0x10], 0x21
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00529f16
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [ebp + edx*2 - 0x38], cx
cmp dword [ebp - 0x24c], 0
je 0x42c685
mov eax, dword [ebp - 0x24c]
add eax, 2
mov dword [ebp - 0x2ec], eax
jmp 0x42c68f
mov dword [ebp - 0x2ec], 0
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], 0x1fe
xor edx, edx
mov word [ebp - 0x244], dx
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x270]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x274], eax
xor eax, eax
je 0x42c6f2
mov ecx, dword [ebp - 0x278]
mov dword [0], ecx
cmp dword [ebp - 0x274], 0
jne 0x42c71f
lea ecx, [ebp - 0x40]
call fcn.0042fbd0
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x40], edx
mov eax, 0x2001f
and eax, 0x300
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x274], 0
je 0x42c77a
mov dword [ebp - 0x27c], 0
cmp dword [ebp - 0x40], 0
je 0x42c74f
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042fbd0
mov eax, dword [ebp - 0x250]
jmp 0x42cc39
xor edx, edx
jne 0x42c77a
xor eax, eax
jne 0x42c77a
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
mov dword [ebp - 0x280], ecx
cmp dword [ebp - 0x280], 0
jne 0x42c79c
jmp 0x42c7c6
xor edx, edx
jne 0x42c782
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0
push 0x57d6dc
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x284], 0
cmp dword [ebp - 0x40], 0
je 0x42c7ed
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
jmp 0x42c5eb
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x248]
call fcn.00426870
mov byte [ebp - 4], 1
push 0xf7f8dc
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.0042f5a0
add esp, 0xc
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
mov eax, dword [edx]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x298], 0
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x298]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
mov eax, dword [ebp - 0x294]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x29c], eax
xor ecx, ecx
je 0x42c888
mov edx, dword [ebp - 0x2a0]
mov dword [0], edx
cmp dword [ebp - 0x29c], 0
jne 0x42c8b6
lea ecx, [ebp - 0x40]
call fcn.0042fbd0
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x40], eax
mov ecx, 0x2001f
and ecx, 0x300
mov dword [ebp - 0x3c], ecx
xor edx, edx
cmp dword [ebp - 0x29c], 0
setne dl
mov byte [ebp - 0x251], dl
mov eax, dword [ebp - 0x258]
sub eax, 0x10
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
call fcn.0040d5b0
movzx ecx, byte [ebp - 0x251]
test ecx, ecx
je 0x42c95d
mov dword [ebp - 0x2a8], 0
cmp dword [ebp - 0x40], 0
je 0x42c914
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x25c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x248]
sub eax, 0x10
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
call fcn.0040d5b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042fbd0
mov eax, dword [ebp - 0x25c]
jmp 0x42cc39
mov ecx, dword [ebp + 0x10]
push ecx
push 0xf7f8d0
lea edx, [ebp - 0x244]
push edx
call fcn.0042cc60
add esp, 0xc
xor eax, eax
jne 0x42c975
xor ecx, ecx
jne 0x42c975
lea edx, [ebp - 0x244]
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x2b0], edx
jne 0x42c993
jmp 0x42c9c3
xor eax, eax
jne 0x42c97d
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x244]
push eax
push 1
push 0
push 0x57d6dc
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2b4], 0
cmp dword [ebp - 0x40], 0
je 0x42c9ea
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0xf7f8a8
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.0042f5a0
add esp, 0xc
mov dword [ebp - 0x2b8], eax
mov edx, dword [ebp - 0x2b8]
mov eax, dword [edx]
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2c0], 0
lea ecx, [ebp - 0x2c8]
push ecx
lea edx, [ebp - 0x2c0]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
mov eax, dword [ebp - 0x2bc]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x2c4], eax
xor ecx, ecx
je 0x42ca6d
mov edx, dword [ebp - 0x2c8]
mov dword [0], edx
cmp dword [ebp - 0x2c4], 0
jne 0x42ca9b
lea ecx, [ebp - 0x40]
call fcn.0042fbd0
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x40], eax
mov ecx, 0x2001f
and ecx, 0x300
mov dword [ebp - 0x3c], ecx
xor edx, edx
cmp dword [ebp - 0x2c4], 0
setne dl
mov byte [ebp - 0x25d], dl
mov eax, dword [ebp - 0x264]
sub eax, 0x10
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
call fcn.0040d5b0
movzx ecx, byte [ebp - 0x25d]
test ecx, ecx
je 0x42cb42
mov dword [ebp - 0x2d0], 0
cmp dword [ebp - 0x40], 0
je 0x42caf9
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x268], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x248]
sub eax, 0x10
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
call fcn.0040d5b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042fbd0
mov eax, dword [ebp - 0x268]
jmp 0x42cc39
mov ecx, dword [ebp + 0x10]
push ecx
push 0xf7f898
lea edx, [ebp - 0x244]
push edx
call fcn.0042cc60
add esp, 0xc
xor eax, eax
jne 0x42cb5a
xor ecx, ecx
jne 0x42cb5a
lea edx, [ebp - 0x244]
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x2d8], edx
jne 0x42cb78
jmp 0x42cba8
xor eax, eax
jne 0x42cb62
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x244]
push eax
push 1
push 0
push 0x57d6dc
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2dc], 0
cmp dword [ebp - 0x40], 0
je 0x42cbcf
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x26c], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x248]
sub eax, 0x10
mov dword [ebp - 0x2e0], eax
mov ecx, dword [ebp - 0x2e0]
call fcn.0040d5b0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2e4], 0
cmp dword [ebp - 0x40], 0
je 0x42cc2c
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00525f29
mov esp, ebp
pop ebp
ret