Function at 0x413990
Capabilities:
Delete registry key
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov dword [ebp - 0x20], 0xe026
mov dword [ebp - 0x24], 0xab0f
mov dword [ebp - 0x3c], 0x4742
mov dword [ebp - 0x30], 0x182f7
mov dword [ebp - 0x64], 0x17f3d
mov dword [ebp - 0xc], 0x7f38
mov dword [ebp - 0x68], 0xcb85
mov dword [ebp - 0x34], 0x12a9c
mov dword [ebp - 0x54], 0xc277
mov dword [ebp - 0x2c], 0xb7c
mov dword [ebp - 8], 0x13906
mov dword [ebp - 0x5c], 0xc435
mov dword [ebp - 0x38], 0x1276d
mov dword [ebp - 0x1c], 0x16ab1
mov dword [ebp - 0x14], 0x1d42
mov dword [ebp - 4], 0xcc19
mov dword [ebp - 0x44], 0x56da
mov dword [ebp - 0x74], 0xe485
mov dword [ebp - 0x10], 0x1004d
mov dword [ebp - 0x40], 0x1207
mov dword [ebp - 0x48], 0xa332
mov dword [ebp - 0x28], 0xe5cd
mov dword [ebp - 0x18], 0xc06a
mov dword [ebp - 0x50], 0x87cc
mov dword [ebp - 0x58], 0x8316
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x1c]
jge 0x413a59
mov dword [ebp - 0x70], 1
jmp 0x413a60
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x14]
jge 0x413a71
mov dword [ebp - 0x6c], 1
jmp 0x413a78
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x24]
and edx, dword [ebp - 0x54]
and edx, dword [ebp - 0x6c]
or edx, dword [ebp - 0x70]
je 0x413c3a
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x3c]
jne 0x413c3a
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x50]
jne 0x413c3a
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x74]
jne 0x413c3a
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 4]
jne 0x413c3a
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 8]
jne 0x413c3a
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x54]
jge 0x413c3a
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x74]
jne 0x413c3a
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x50]
jne 0x413c3a
push 0xf51
push 0xc80e
push 0xa304
push 0x132e2
push 0x181c5
push 0x3530
push 0x12355
call dword [sym.imp.KERNEL32.dll_FindActCtxSectionGuid]
add esp, 0x1c
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 0x3c]
and ecx, eax
je 0x413c27
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x30]
jne 0x413c27
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x44]
jne 0x413c27
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jge 0x413b65
mov dword [ebp - 0x78], 1
jmp 0x413b6c
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
and eax, dword [ebp - 0x58]
and eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
xor ecx, dword [ebp - 0x24]
and eax, ecx
je 0x413c27
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x5c]
jne 0x413c27
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0xc]
jne 0x413c27
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x14]
jne 0x413c27
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
jne 0x413c27
push 0x12137
push 0x3839
push 0xd74c
push 0xd573
push 0x1b69
push 0x5ab0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add esp, 0x18
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x18]
jge 0x413bea
mov dword [ebp - 0x7c], 1
jmp 0x413bf1
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x10]
jge 0x413c02
mov dword [ebp - 0x80], 1
jmp 0x413c09
mov dword [ebp - 0x80], 0
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp - 0x1c]
and edx, dword [ebp - 0x7c]
and edx, dword [ebp - 0x80]
je 0x413c21
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
push 0x153d0
push 0x147aa
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
add esp, 8
mov dword [ebp - 0x4c], 0
jmp 0x413c4c
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x10]
sub edx, 0x1004c
cmp dword [ebp - 0x4c], edx
jge 0x413e05
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x10]
jge 0x413c72
mov dword [ebp - 0x84], 1
jmp 0x413c7c
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x30]
jge 0x413c90
mov dword [ebp - 0x88], 1
jmp 0x413c9a
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x84]
or edx, dword [ebp - 0x88]
je 0x413e00
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jne 0x413e00
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x20]
jne 0x413e00
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x24]
jne 0x413e00
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jne 0x413e00
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jne 0x413e00
push 0x13abd
push 0xbfd5
push 0x276f
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x48]
jge 0x413d14
mov dword [ebp - 0x8c], 1
jmp 0x413d1e
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xbc]
jge 0x413d53
mov dword [ebp - 0x90], 1
jmp 0x413d5d
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc0]
cmp ecx, dword [ebp - 0xc4]
jge 0x413d95
mov dword [ebp - 0x94], 1
jmp 0x413d9f
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x8c]
or edx, dword [ebp - 0x90]
or edx, dword [ebp - 0x94]
je 0x413e00
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xc]
jne 0x413e00
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jne 0x413e00
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x64]
jge 0x413dd4
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
push 0xb206
push 0xf3b4
push 0x121e0
push 0x12b01
push 0xc028
push 0x6255
push 0xdb29
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add esp, 0x1c
jmp 0x413c43
mov ecx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x30]
and ecx, edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
and ecx, eax
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc8], 0
je 0x413e3d
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x60], 0
jmp 0x413e4f
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x5c]
sub ecx, 0xc434
cmp dword [ebp - 0x60], ecx
jge 0x414086
mov edx, dword [ebp - 0x64]
and edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x28]
jge 0x413e78
mov dword [ebp - 0x98], 1
jmp 0x413e82
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jge 0x413e96
mov dword [ebp - 0x9c], 1
jmp 0x413ea0
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0x98]
and ecx, dword [ebp - 0x9c]
je 0x414081
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 4]
jne 0x414081
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x414081
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xcc]
cmp ecx, dword [ebp - 0xd0]
jge 0x413eff
mov dword [ebp - 0xa8], 1
jmp 0x413f09
mov dword [ebp - 0xa8], 0
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 8]
jge 0x413f1d
mov dword [ebp - 0xa0], 1
jmp 0x413f27
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x3c]
jge 0x413f3b
mov dword [ebp - 0xa4], 1
jmp 0x413f45
mov dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 0xa0]
and ecx, dword [ebp - 0xa4]
or ecx, dword [ebp - 0xa8]
je 0x414081
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x10]
jne 0x414081
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jne 0x414081
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x28]
jne 0x414081
push 0x2029
push 0x1615b
call dword [sym.imp.KERNEL32.dll_FindStringOrdinal]
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jge 0x413fa8
mov dword [ebp - 0xac], 1
jmp 0x413fb2
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
jge 0x413fc6
mov dword [ebp - 0xb0], 1
jmp 0x413fd0
mov dword [ebp - 0xb0], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x38]
jge 0x413fe4
mov dword [ebp - 0xb4], 1
jmp 0x413fee
mov dword [ebp - 0xb4], 0
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 0xac]
and edx, dword [ebp - 0xb0]
and edx, dword [ebp - 0xb4]
je 0x41405a
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x3c]
jne 0x41405a
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x28]
jne 0x41405a
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0xc]
jne 0x41405a
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jge 0x41405a
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x18]
jne 0x41405a
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x10]
jne 0x41405a
push 0x60fc
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
add esp, 4
mov eax, dword [ebp - 0x40]
sub eax, 1
mov dword [ebp - 0x40], eax
push 0xe7f
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
add esp, 4
push 0x8fa9
push 0x12ffe
push 0x3ea4
push 0x16d4d
push 0xce16
push 0x15d3c
call dword [sym.imp.KERNEL32.dll_NeedCurrentDirectoryForExePathA]
add esp, 0x18
jmp 0x413e46
mov ecx, dword [ebp - 0x44]
add ecx, 0x317f
push ecx
mov edx, dword [ebp - 0x18]
sub edx, 0x45a2
push edx
mov eax, dword [ebp - 0x48]
add eax, 0xab00
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x5953
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0xd2d2
push edx
mov eax, dword [ebp - 0x48]
add eax, 0x8e37
push eax
call fcn.0040b260
add esp, 0x18
mov esp, ebp
pop ebp
ret