Function at 0x40bf70
Capabilities:
Copy file
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf56d
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x238], 0
mov eax, 0x30
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.0048ac80
add esp, 0xc
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411290
mov dword [ebp - 4], 0
mov ecx, 0x4f89c8
call fcn.00434fb0
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x234]
push ecx
mov ecx, 0x4f89c8
call fcn.0042bf40
mov byte [ebp - 4], 1
lea edx, [ebp - 0x228]
push edx
mov ecx, 0x4f89c8
call fcn.0042b8e0
mov byte [ebp - 4], 2
call fcn.00447437
push eax
lea ecx, [ebp - 0x22c]
call fcn.00411850
mov byte [ebp - 4], 3
cmp dword [ebp - 0x230], 0
je 0x40c0b0
push str.MediaSecX64_
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x528], eax
mov edx, dword [ebp - 0x528]
mov dword [ebp - 0x2e0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004118e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x244]
sub ecx, 0x10
mov dword [ebp - 0x2e4], ecx
mov ecx, dword [ebp - 0x2e4]
call fcn.00403de0
jmp 0x40c111
push str.MediaSecX86_
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
mov dword [ebp - 0x2e8], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2e8]
push edx
lea ecx, [ebp - 0x22c]
call fcn.004118e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x248]
sub eax, 0x10
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
call fcn.00403de0
push str.System32DriversDvcLock.sys
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0040f970
add esp, 0xc
mov byte [ebp - 4], 6
push 0x80
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4c9f28
lea ecx, [ebp - 0x24c]
call fcn.00411370
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ecx]
mov dword [ebp - 0x2f8], edx
mov eax, dword [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x250]
sub ecx, 0x10
mov dword [ebp - 0x2fc], ecx
mov ecx, dword [ebp - 0x2fc]
call fcn.00403de0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x24c]
sub edx, 0x10
mov dword [ebp - 0x300], edx
mov ecx, dword [ebp - 0x300]
call fcn.00403de0
push 0x4c9f28
lea ecx, [ebp - 0x254]
call fcn.00411370
mov byte [ebp - 4], 8
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x258]
push edx
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
mov ecx, dword [eax]
mov dword [ebp - 0x30c], ecx
mov edx, dword [ebp - 0x30c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x258]
sub ecx, 0x10
mov dword [ebp - 0x310], ecx
mov ecx, dword [ebp - 0x310]
call fcn.00403de0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x254]
sub edx, 0x10
mov dword [ebp - 0x314], edx
mov ecx, dword [ebp - 0x314]
call fcn.00403de0
push str.System32DriversDeviceLock.sys
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x530], eax
mov edx, dword [ebp - 0x530]
mov dword [ebp - 0x318], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x318]
push eax
lea ecx, [ebp - 0x10]
call fcn.004118e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x25c]
sub ecx, 0x10
mov dword [ebp - 0x31c], ecx
mov ecx, dword [ebp - 0x31c]
call fcn.00403de0
push 0x80
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4c9f28
lea ecx, [ebp - 0x260]
call fcn.00411370
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x264]
sub eax, 0x10
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
call fcn.00403de0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x260]
sub ecx, 0x10
mov dword [ebp - 0x330], ecx
mov ecx, dword [ebp - 0x330]
call fcn.00403de0
push 0x4c9f28
lea ecx, [ebp - 0x268]
call fcn.00411370
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x338], eax
mov edx, dword [ebp - 0x338]
mov eax, dword [edx]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x26c]
sub eax, 0x10
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
call fcn.00403de0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x268]
sub ecx, 0x10
mov dword [ebp - 0x344], ecx
mov ecx, dword [ebp - 0x344]
call fcn.00403de0
cmp dword [ebp - 0x230], 0
je 0x40c413
push 0
call fcn.00435150
add esp, 4
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40c3ff
push str.UpdateMediaSecDriversPath_WowFsRedirection__FALSE__Succeed.
mov edx, dword [ebp - 0x524]
push edx
call fcn.004028d0
add esp, 8
jmp 0x40c413
push str.UpdateMediaSecDriversPath_WowFsRedirection__FALSE__Fail.
mov eax, dword [ebp - 0x524]
push eax
call fcn.004028d0
add esp, 8
cmp dword [ebp - 0x230], 0
je 0x40c4e4
push str.System32DriversDvcLock.sys
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x270]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x534], eax
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x348], eax
mov byte [ebp - 4], 0xc
push str.DeviceLock.sys
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x348]
mov ecx, dword [eax]
mov dword [ebp - 0x34c], ecx
mov edx, dword [ebp - 0x350]
mov eax, dword [edx]
mov dword [ebp - 0x354], eax
push 0
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x274]
sub eax, 0x10
mov dword [ebp - 0x358], eax
mov ecx, dword [ebp - 0x358]
call fcn.00403de0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x270]
sub ecx, 0x10
mov dword [ebp - 0x35c], ecx
mov ecx, dword [ebp - 0x35c]
call fcn.00403de0
jmp 0x40ca10
mov edx, 0x4c99c4
neg edx
sbb edx, edx
neg edx
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x360], edx
jne 0x40c507
push 0x80004005
call fcn.00402430
xor eax, eax
jne 0x40c4e4
xor ecx, ecx
jne 0x40c50b
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x364], edx
push 0x4c99c4
mov eax, dword [ebp - 0x364]
push eax
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0
jne 0x40c5f7
push str.System32DriversDvcLock.sys
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x278]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x538], eax
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x36c], eax
mov byte [ebp - 4], 0xd
push str.DeviceLock2k.sys
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x36c]
mov ecx, dword [eax]
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x374]
mov eax, dword [edx]
mov dword [ebp - 0x378], eax
push 0
mov ecx, dword [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x378]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x27c]
sub eax, 0x10
mov dword [ebp - 0x37c], eax
mov ecx, dword [ebp - 0x37c]
call fcn.00403de0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00402470
jmp 0x40ca10
mov ecx, 0x4c99b8
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x384], ecx
jne 0x40c61a
push 0x80004005
call fcn.00402430
xor edx, edx
jne 0x40c5f7
xor eax, eax
jne 0x40c61e
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x388], ecx
push 0x4c99b8
mov edx, dword [ebp - 0x388]
push edx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 0
je 0x40c6af
mov eax, 0x4c99a0
neg eax
sbb eax, eax
neg eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x390], eax
jne 0x40c674
push 0x80004005
call fcn.00402430
xor ecx, ecx
jne 0x40c651
xor edx, edx
jne 0x40c678
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x394], eax
push 0x4c99a0
mov ecx, dword [ebp - 0x394]
push ecx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
jne 0x40c755
push str.System32DriversDvcLock.sys
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x280]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x53c], eax
mov ecx, dword [ebp - 0x53c]
mov dword [ebp - 0x39c], ecx
mov byte [ebp - 4], 0xe
push str.DeviceLockxp.sys
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x284]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x3a4], eax
mov ecx, dword [ebp - 0x39c]
mov edx, dword [ecx]
mov dword [ebp - 0x3a0], edx
mov eax, dword [ebp - 0x3a4]
mov ecx, dword [eax]
mov dword [ebp - 0x3a8], ecx
push 0
mov edx, dword [ebp - 0x3a0]
push edx
mov eax, dword [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x284]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x280]
call fcn.00402470
jmp 0x40ca10
mov ecx, 0x4c998c
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x3b4], ecx
jne 0x40c778
push 0x80004005
call fcn.00402430
xor edx, edx
jne 0x40c755
xor eax, eax
jne 0x40c77c
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x3b8], ecx
push 0x4c998c
mov edx, dword [ebp - 0x3b8]
push edx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x3bc], eax
cmp dword [ebp - 0x3bc], 0
jne 0x40c859
push str.System32DriversDeviceLock.sys
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x288]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x540], eax
mov edx, dword [ebp - 0x540]
mov dword [ebp - 0x3c0], edx
mov byte [ebp - 4], 0xf
push str.DeviceLockLH.sys
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x3c8], eax
mov edx, dword [ebp - 0x3c0]
mov eax, dword [edx]
mov dword [ebp - 0x3c4], eax
mov ecx, dword [ebp - 0x3c8]
mov edx, dword [ecx]
mov dword [ebp - 0x3cc], edx
push 0
mov eax, dword [ebp - 0x3c4]
push eax
mov ecx, dword [ebp - 0x3cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x28c]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
call fcn.00402470
jmp 0x40ca10
mov edx, 0x4c9978
neg edx
sbb edx, edx
neg edx
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x3d8], edx
jne 0x40c87c
push 0x80004005
call fcn.00402430
xor eax, eax
jne 0x40c859
xor ecx, ecx
jne 0x40c880
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x3dc], edx
push 0x4c9978
mov eax, dword [ebp - 0x3dc]
push eax
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x3e0], eax
cmp dword [ebp - 0x3e0], 0
je 0x40c96f
mov ecx, 0x4c9964
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x3e4], ecx
jne 0x40c8da
push 0x80004005
call fcn.00402430
xor edx, edx
jne 0x40c8b7
xor eax, eax
jne 0x40c8de
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x3e8], ecx
push 0x4c9964
mov edx, dword [ebp - 0x3e8]
push edx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x3ec], eax
cmp dword [ebp - 0x3ec], 0
je 0x40c96f
mov eax, 0x4c9950
neg eax
sbb eax, eax
neg eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x3f0], eax
jne 0x40c934
push 0x80004005
call fcn.00402430
xor ecx, ecx
jne 0x40c911
xor edx, edx
jne 0x40c938
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x3f4], eax
push 0x4c9950
mov ecx, dword [ebp - 0x3f4]
push ecx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0
jne 0x40ca10
push str.System32DriversDeviceLock.sys
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x544]
mov dword [ebp - 0x3fc], ecx
mov byte [ebp - 4], 0x10
push str.DeviceLockW7.sys
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x294]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x404], eax
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ecx]
mov dword [ebp - 0x400], edx
mov eax, dword [ebp - 0x404]
mov ecx, dword [eax]
mov dword [ebp - 0x408], ecx
push 0
mov edx, dword [ebp - 0x400]
push edx
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x294]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x290]
call fcn.00402470
push str.System32DriversRegLock.sys
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x298]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x548], eax
mov eax, dword [ebp - 0x548]
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004118e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x298]
call fcn.00402470
push 0x80
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4c9f28
lea ecx, [ebp - 0x29c]
call fcn.00411370
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2a0]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x29c]
call fcn.00402470
push 0x4c9f28
lea ecx, [ebp - 0x2a4]
call fcn.00411370
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call fcn.0040f890
add esp, 0xc
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x2a8]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a4]
call fcn.00402470
cmp dword [ebp - 0x230], 0
je 0x40cbee
push str.System32DriversRegLock.sys
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2ac]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x54c], eax
mov eax, dword [ebp - 0x54c]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0x14
push str.reglock.sys
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x2b0]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax]
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx]
mov dword [ebp - 0x450], eax
push 0
mov ecx, dword [ebp - 0x448]
push ecx
mov edx, dword [ebp - 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x2b0]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2ac]
call fcn.00402470
jmp 0x40d0f3
mov eax, 0x4c99c4
neg eax
sbb eax, eax
neg eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x45c], eax
jne 0x40cc11
push 0x80004005
call fcn.00402430
xor ecx, ecx
jne 0x40cbee
xor edx, edx
jne 0x40cc15
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x460], eax
push 0x4c99c4
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
jne 0x40ccec
push str.System32DriversRegLock.sys
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2b4]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x550], eax
mov ecx, dword [ebp - 0x550]
mov dword [ebp - 0x468], ecx
mov byte [ebp - 4], 0x15
push str.reglock2K.sys
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x2b8]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
mov dword [ebp - 0x46c], edx
mov eax, dword [ebp - 0x470]
mov ecx, dword [eax]
mov dword [ebp - 0x474], ecx
push 0
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x2b8]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2b4]
call fcn.00402470
jmp 0x40d0f3
mov ecx, 0x4c99b8
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x480], ecx
jne 0x40cd0f
push 0x80004005
call fcn.00402430
xor edx, edx
jne 0x40ccec
xor eax, eax
jne 0x40cd13
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x484], ecx
push 0x4c99b8
mov edx, dword [ebp - 0x484]
push edx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 0
je 0x40cda4
mov eax, 0x4c99a0
neg eax
sbb eax, eax
neg eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x48c], eax
jne 0x40cd69
push 0x80004005
call fcn.00402430
xor ecx, ecx
jne 0x40cd46
xor edx, edx
jne 0x40cd6d
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x490], eax
push 0x4c99a0
mov ecx, dword [ebp - 0x490]
push ecx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x494], eax
cmp dword [ebp - 0x494], 0
jne 0x40ce44
push str.System32DriversRegLock.sys
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x554], eax
mov ecx, dword [ebp - 0x554]
mov dword [ebp - 0x498], ecx
mov byte [ebp - 4], 0x16
push str.RegLockXP.sys
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x2c0]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x498]
mov edx, dword [ecx]
mov dword [ebp - 0x49c], edx
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [eax]
mov dword [ebp - 0x4a4], ecx
push 0
mov edx, dword [ebp - 0x49c]
push edx
mov eax, dword [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x2c0]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2bc]
call fcn.00402470
jmp 0x40d0f3
mov ecx, 0x4c998c
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x4b0], ecx
jne 0x40ce67
push 0x80004005
call fcn.00402430
xor edx, edx
jne 0x40ce44
xor eax, eax
jne 0x40ce6b
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x4b4], ecx
push 0x4c998c
mov edx, dword [ebp - 0x4b4]
push edx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0
jne 0x40cf42
push str.System32DriversRegLock.sys
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x558], eax
mov edx, dword [ebp - 0x558]
mov dword [ebp - 0x4bc], edx
mov byte [ebp - 4], 0x17
push str.RegLockLH.sys
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x4c4], eax
mov edx, dword [ebp - 0x4bc]
mov eax, dword [edx]
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4c4]
mov edx, dword [ecx]
mov dword [ebp - 0x4c8], edx
push 0
mov eax, dword [ebp - 0x4c0]
push eax
mov ecx, dword [ebp - 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x2c8]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c4]
call fcn.00402470
jmp 0x40d0f3
mov edx, 0x4c9978
neg edx
sbb edx, edx
neg edx
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x4d4], edx
jne 0x40cf65
push 0x80004005
call fcn.00402430
xor eax, eax
jne 0x40cf42
xor ecx, ecx
jne 0x40cf69
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x4d8], edx
push 0x4c9978
mov eax, dword [ebp - 0x4d8]
push eax
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x4dc], eax
cmp dword [ebp - 0x4dc], 0
je 0x40d058
mov ecx, 0x4c9964
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x4e0], ecx
jne 0x40cfc3
push 0x80004005
call fcn.00402430
xor edx, edx
jne 0x40cfa0
xor eax, eax
jne 0x40cfc7
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x4e4], ecx
push 0x4c9964
mov edx, dword [ebp - 0x4e4]
push edx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x4e8], eax
cmp dword [ebp - 0x4e8], 0
je 0x40d058
mov eax, 0x4c9950
neg eax
sbb eax, eax
neg eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x4ec], eax
jne 0x40d01d
push 0x80004005
call fcn.00402430
xor ecx, ecx
jne 0x40cffa
xor edx, edx
jne 0x40d021
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x4f0], eax
push 0x4c9950
mov ecx, dword [ebp - 0x4f0]
push ecx
call fcn.0048c808
add esp, 8
mov dword [ebp - 0x4f4], eax
cmp dword [ebp - 0x4f4], 0
jne 0x40d0f3
push str.System32DriversRegLock.sys
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2cc]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x55c], eax
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x4f8], ecx
mov byte [ebp - 4], 0x18
push str.RegLockLH.sys
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x2d0]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x4f8]
mov edx, dword [ecx]
mov dword [ebp - 0x4fc], edx
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax]
mov dword [ebp - 0x504], ecx
push 0
mov edx, dword [ebp - 0x4fc]
push edx
mov eax, dword [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x2d0]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2cc]
call fcn.00402470
cmp dword [ebp - 0x230], 0
je 0x40d13f
push 1
call fcn.00435150
add esp, 4
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x40d12b
push str.UpdateMediaSecDriversPath_WowFsRedirection__TRUE__Succeed.
mov ecx, dword [ebp - 0x524]
push ecx
call fcn.004028d0
add esp, 8
jmp 0x40d13f
push str.UpdateMediaSecDriversPath_WowFsRedirection__TRUE__Fail.
mov edx, dword [ebp - 0x524]
push edx
call fcn.004028d0
add esp, 8
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x2d4], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00402470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402470
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret