Function at 0x4063e0
Capabilities:
Create directory
Delete directory
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x493c]
mov eax, 0x493c
call fcn.004d7c90
push 0xfffffffffffffffe
push 0x563ac8
push 0x4d8830
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2038c
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x4938], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 0x494c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ecx
mov esi, dword [ebp + 0x4954]
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov byte [ebp + 0x4718], bl
push 0x1ff
push ebx
lea edx, [ebp + 0x4719]
push edx
call fcn.004d5720
mov byte [ebp + 0x4918], bl
xor eax, eax
mov dword [ebp + 0x4919], eax
mov dword [ebp + 0x491d], eax
mov dword [ebp + 0x4921], eax
mov dword [ebp + 0x4925], eax
mov dword [ebp + 0x4929], eax
mov dword [ebp + 0x492d], eax
mov dword [ebp + 0x4931], eax
mov word [ebp + 0x4935], ax
mov byte [ebp + 0x4937], al
mov byte [ebp - 0x398], al
push 0x303
push ebx
lea eax, [ebp - 0x397]
push eax
call fcn.004d5720
xor ecx, ecx
mov word [ebp + 0x4510], cx
push 0x206
push ebx
lea edx, [ebp + 0x4512]
push edx
call fcn.004d5720
add esp, 0x24
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], ebx
push 0x53f3ec
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [ebx + 1]
cmp eax, edi
jne 0x406505
mov dword [ebp - 0x4c], ecx
add eax, 0xa
mov dword [ebp - 0x2c], eax
jmp 0x40650a
mov dword [ebp - 0x2c], edi
mov eax, edi
cmp esi, ebx
je 0x40651f
test byte [esi + 0x18], 2
je 0x40651f
mov edi, dword [esi + 0x14]
or edi, 0xa0000000
jmp 0x406524
mov edi, 0xa0000006
cmp eax, ebx
jne 0x40655d
cmp esi, ebx
jne 0x40653b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406d07
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40652c
cmp eax, 0xffffffff
je 0x40652c
mov edx, dword [esi]
mov dword [ebp - 0x44], edx
mov edx, dword [esi + 4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
jmp 0x406665
push ebx
push edi
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x406644
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [ebp + 0x4510], ecx
push str.LnvEstDisk
lea edx, [ebp + 0x4510]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
call ebx
push 0
lea eax, [ebp + 0x4510]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4065be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406534
lea ecx, [ebp + 0x4510]
push ecx
lea edx, [ebp + 0x4308]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x53ef10
lea eax, [ebp + 0x4308]
push eax
call ebx
mov eax, dword [ebp - 0x2c]
call fcn.0040b8a0
push eax
lea ecx, [ebp + 0x4308]
push ecx
call ebx
push 0
push edi
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp + 0x4308]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x406638
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp + 0x4510]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406d07
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
lea ecx, [ebp - 0x48]
push ecx
push ebx
push ebx
push 4
lea edx, [ebp - 0x20]
push edx
push 0x9c040
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], ecx
mov edi, 0x20
mov dword [ebp - 0x20], edi
cmp esi, ebx
je 0x406701
cmp byte [esi + 0xc], 0
je 0x406701
cmp dword [ebp - 0x34], ebx
jne 0x4066ab
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x56c3c0
call fcn.004ec7ac
add esp, 0xc
xor eax, eax
jmp 0x406d07
mov ecx, dword [ebp - 0x3c]
push ecx
mov esi, dword [ebp - 0x34]
call fcn.0040ed40
add esp, 4
test eax, eax
jne 0x4066e3
push 0xc0000101
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x56c3c0
call fcn.004ec7ac
add esp, 0xc
xor eax, eax
jmp 0x406d07
mov ecx, esi
mov eax, dword [ecx + 0x60]
mov dword [ebp - 0x20], eax
push eax
push ecx
lea eax, [ebp + 0x4718]
push eax
call fcn.004d57a0
add esp, 0xc
mov esi, dword [ebp - 0x28]
jmp 0x40670e
lea ebx, [ebp + 0x4718]
call fcn.0040b8e0
xor ebx, ebx
mov byte [ebp - 0x398], 1
mov byte [ebp - 0x397], 1
mov edi, dword [ebp - 0x20]
push edi
lea ecx, [ebp + 0x4718]
push ecx
lea edx, [ebp - 0x394]
push edx
call fcn.004d57a0
mov word [ebp - 0x396], di
lea edx, [ebp - 0x398]
call fcn.004167e0
push 0x4000
push ebx
lea eax, [ebp]
push eax
call fcn.004d5720
add esp, 0x18
mov dword [ebp], 0x44564545
mov ecx, 0x200
mov word [ebp + 0x18], cx
mov edx, dword [str.E_SAFENET]
mov dword [ebp + 4], edx
mov eax, dword [0x53f3d0]
mov dword [ebp + 8], eax
mov cx, word [0x53f3d4]
mov word [ebp + 0xc], cx
mov edx, dword [str.EDISK]
mov dword [ebp + 0x10], edx
mov ax, word [0x53f3dc]
mov word [ebp + 0x14], ax
mov dword [ebp + 0x20], 0x4000
mov ecx, dword [ebp - 0x24]
neg ecx
sbb ecx, ecx
and ecx, 0x80
mov byte [ebp + 0x253], cl
mov eax, 0x2000
mov dword [ebp + 0x254], eax
mov dword [ebp + 0x258], eax
cmp esi, ebx
je 0x40682f
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x40682f
mov byte [ebp + 0x4108], 0
push 0x1ff
push ebx
lea edx, [ebp + 0x4109]
push edx
call fcn.004d5720
push 0x1ff
push esi
lea eax, [ebp + 0x4108]
push eax
call fcn.004d7e70
push 0xa
push 0x53f3e0
lea eax, [ebp + 0x4000]
call fcn.00417ad0
push 0x200
lea ecx, [ebp + 0x4108]
call fcn.00417b30
add esp, 0x24
mov ecx, 8
lea esi, [ebp + 0x4108]
lea edi, [ebp + 0x2d5]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x4944]
mov eax, dword [ebp + 0x4948]
cmp dword [ebp - 0x24], ebx
je 0x406845
sub ecx, dword [ebp + 0x20]
sbb eax, ebx
shrd ecx, eax, 9
shr eax, 9
push 0
push 0x200
push eax
push ecx
call fcn.004d5d30
mov ebx, eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], edx
mov edi, ebx
mov dword [ebp + 0x24], edi
mov esi, edx
mov dword [ebp + 0x28], esi
and eax, 0xc0000000
cmp esi, 0x1f4
jb 0x4068a5
ja 0x40687f
test eax, eax
jb 0x4068a5
mov dword [ebp + 0x24], 0x1f4000
xor eax, eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], 0x1f4
mov edi, 0xfffff000
mov dword [ebp + 0x24], edi
mov esi, 0x1f3
mov dword [ebp + 0x28], esi
cmp dword [ebp - 0x24], 0
jne 0x406995
mov dword [ebp + 0x2ad], 0x200
mov dword [ebp + 0x2b1], 0x1f40
mov ecx, edi
mov edx, esi
shrd ecx, edx, 9
shr edx, 9
push 0
push 0x1f40
push edx
push ecx
call fcn.004d8a70
shrd eax, edx, 7
shr edx, 7
inc eax
mov dword [ebp + 0x2b5], eax
mov dword [ebp + 0x2b9], 1
mov ecx, dword [ebp + 0x20]
shr ecx, 9
mov dword [ebp + 0x2bd], ecx
add eax, eax
mov dword [ebp + 0x2c1], eax
mov dword [ebp + 0x2c5], 2
mov dword [ebp + 0x2c9], 0
shl eax, 9
mov ebx, eax
mov dword [ebp + 0x2a5], ebx
push 0
push 2
push esi
push edi
call fcn.004d5d30
mov dword [ebp + 0x29d], eax
mov dword [ebp + 0x2a1], edx
and eax, 0xc0000000
cmp edx, 0x1f4
jb 0x406987
ja 0x406951
test eax, eax
jb 0x406987
mov dword [ebp + 0x29d], 0x1f4000
xor eax, eax
mov dword [ebp + 0x2a1], eax
mov dword [ebp + 0x29d], eax
mov dword [ebp + 0x2a1], 0x1f4
mov dword [ebp + 0x29d], 0xfffff000
mov dword [ebp + 0x2a1], 0x1f3
mov edx, dword [ebp + 0x20]
add ebx, edx
mov dword [ebp + 0x2a9], ebx
mov ebx, dword [ebp - 0x54]
lea eax, [ebp + 0x4918]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp + 0x4718]
push edx
call fcn.004891d0
mov ecx, 8
lea esi, [ebp + 0x4918]
lea edi, [ebp + 0x27c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
lea edi, [ebp + 0x4718]
call fcn.004150c0
add esp, 0x10
cmp dword [ebp + 0x4950], 0
je 0x4069f0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, edi
push edx
lea eax, [ebp + 0x4f]
push eax
call fcn.004d57a0
add esp, 0xc
mov byte [ebp + 0x251], 1
mov byte [ebp + 0x252], 1
mov byte [ebp + 0x4c], 0
lea edi, [ebp + 0x2c]
lea esi, [ebp - 0x398]
call fcn.00415060
lea edi, [ebp + 0x25c]
mov ecx, dword [ebp - 0x3c]
call fcn.00414fe0
mov byte [ebp + 0x4d], 2
mov byte [ebp + 0x4e], 0
mov cx, word [ebp - 0x20]
mov word [ebp + 0x24f], cx
mov byte [ebp + 0x1a], 2
cmp dword [ebp - 0x24], 0
je 0x406a6f
mov eax, dword [ebp + 0x20]
xor ecx, ecx
add eax, dword [ebp - 0x44]
adc ecx, dword [ebp - 0x40]
mov edx, ebx
mov esi, dword [ebp - 0x50]
lea edi, [ebp - 0x398]
push edi
push esi
push edx
push ecx
push eax
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00415d20
add esp, 0x18
test eax, eax
je 0x406cf8
jmp 0x406b9b
mov edi, dword [ebp - 0x4c]
test edi, edi
jne 0x406abc
lea edx, [ebp - 0x398]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
push edi
mov edx, dword [ebp + 0x2a9]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00415d20
add esp, 0x18
test eax, eax
je 0x406cf8
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x2a9]
cmp eax, ecx
jbe 0x406cf8
jmp 0x406ac4
mov ecx, dword [ebp + 0x2a9]
mov eax, ecx
sub eax, ecx
shr eax, 9
mov ecx, dword [ebp + 0x2b1]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov esi, eax
push esi
lea edx, [ebp + 0x2ad]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00405690
add esp, 0xc
test eax, eax
je 0x406cf8
add dword [ebp + 0x2c5], esi
test edi, edi
je 0x406b98
mov dword [ebp - 0x94], 0
push 0x34
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.004d5720
mov ecx, 8
lea esi, [ebp + 0x2ad]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp + 0x2a9]
shr eax, 9
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x203a4]
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x398]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0x94]
call fcn.00405310
push 0x405ce0
push 0x405870
push 0x405cd0
mov eax, dword [ebp + 0x24]
add eax, 0xfffffe00
mov ecx, dword [ebp + 0x28]
adc ecx, 0xffffffff
push ecx
push eax
lea edx, [ebp - 0x94]
push edx
call sym.ODMGuard.exe_FormatNTFS
add esp, 0x24
test eax, eax
je 0x406cf8
mov esi, dword [ebp - 0x1c]
lea eax, [ebp]
call fcn.004152a0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x58], ecx
push 0
lea edx, [ebp - 0x58]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406cf8
push 0
lea eax, [ebp - 0x48]
push eax
push 0x4000
lea ecx, [ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406cf8
cmp dword [ebp - 0x48], 0x4000
jne 0x406cf8
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x406c10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x38], 0
je 0x406c6a
mov esi, dword [ebp - 0x2c]
push esi
lea ecx, [ebp + 0x4308]
call fcn.00404690
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x406c57
test byte [ecx + 0x18], 1
je 0x406c57
test eax, eax
jne 0x406c7f
lea esi, [ebp + 0x4308]
call fcn.0040c970
mov dword [ebp - 0x38], 0
jmp 0x406c84
test eax, eax
jne 0x406c84
lea edx, [ebp + 0x4308]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406c84
test edi, edi
jne 0x406c84
cmp dword [ebp - 0x28], edi
je 0x406c84
mov eax, dword [ebp - 0x28]
test byte [eax + 0x18], 1
je 0x406c84
mov esi, dword [ebp - 0x2c]
call fcn.0040c970
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x406ce2
push 0x80
push 0
push ebx
call fcn.004d5720
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp + 0x4718]
push edx
push ebx
call fcn.004d57a0
add esp, 0x18
lea edi, [ebx + 0x40]
mov ecx, 8
lea esi, [ebp + 0x4918]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], 1
mov dword [ebx + 0x68], 2
mov edx, 0x80
mov esi, ebx
call fcn.004151c0
movzx ecx, ax
mov dword [ebx + 0x7c], ecx
cmp dword [ebp - 0x28], 0
je 0x406cf8
mov edx, dword [ebp - 0x28]
test byte [edx + 0x18], 1
je 0x406cf8
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00406d2c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4938]
xor ecx, ebp
call fcn.004d6555
add ebp, 0x493c
mov esp, ebp
pop ebp
ret