Function at 0x4063b0
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.004fa800
push 0xfffffffffffffffe
push 0x58cb48
push 0x4fb430
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2038c
call fcn.004fa800
mov eax, dword [0x5954a0]
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.004f8090
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.004f8090
xor ecx, ecx
mov word [ebp + 0x4510], cx
push 0x206
push ebx
lea edx, [ebp + 0x4512]
push edx
call fcn.004f8090
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 0x566d9c
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [ebx + 1]
cmp eax, edi
jne 0x4064d5
mov dword [ebp - 0x4c], ecx
add eax, 0xa
mov dword [ebp - 0x2c], eax
jmp 0x4064da
mov dword [ebp - 0x2c], edi
mov eax, edi
cmp esi, ebx
je 0x4064ef
test byte [esi + 0x18], 2
je 0x4064ef
mov edi, dword [esi + 0x14]
or edi, 0xa0000000
jmp 0x4064f4
mov edi, 0xa0000006
cmp eax, ebx
jne 0x40652d
cmp esi, ebx
jne 0x40650b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406cd7
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4064fc
cmp eax, 0xffffffff
je 0x4064fc
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 0x406635
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 0x406614
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 0x40658e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406504
lea ecx, [ebp + 0x4510]
push ecx
lea edx, [ebp + 0x4308]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5668c0
lea eax, [ebp + 0x4308]
push eax
call ebx
mov eax, dword [ebp - 0x2c]
call fcn.0040b870
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 0x406608
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 0x406cd7
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 0x4066d1
cmp byte [esi + 0xc], 0
je 0x4066d1
cmp dword [ebp - 0x34], ebx
jne 0x40667b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5954a0
call fcn.0050f2f0
add esp, 0xc
xor eax, eax
jmp 0x406cd7
mov ecx, dword [ebp - 0x3c]
push ecx
mov esi, dword [ebp - 0x34]
call fcn.0040ed10
add esp, 4
test eax, eax
jne 0x4066b3
push 0xc0000101
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x5954a0
call fcn.0050f2f0
add esp, 0xc
xor eax, eax
jmp 0x406cd7
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.004f8140
add esp, 0xc
mov esi, dword [ebp - 0x28]
jmp 0x4066de
lea ebx, [ebp + 0x4718]
call fcn.0040b8b0
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.004f8140
mov word [ebp - 0x396], di
lea edx, [ebp - 0x398]
call fcn.004167b0
push 0x4000
push ebx
lea eax, [ebp]
push eax
call fcn.004f8090
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 [0x566d80]
mov dword [ebp + 8], eax
mov cx, word [0x566d84]
mov word [ebp + 0xc], cx
mov edx, dword [str.EDISK]
mov dword [ebp + 0x10], edx
mov ax, word [0x566d8c]
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 0x4067ff
mov esi, dword [esi + 0x10]
cmp esi, ebx
je 0x4067ff
mov byte [ebp + 0x4108], 0
push 0x1ff
push ebx
lea edx, [ebp + 0x4109]
push edx
call fcn.004f8090
push 0x1ff
push esi
lea eax, [ebp + 0x4108]
push eax
call fcn.004fa830
push 0xa
push 0x566d90
lea eax, [ebp + 0x4000]
call fcn.00417aa0
push 0x200
lea ecx, [ebp + 0x4108]
call fcn.00417b00
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 0x406815
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.004f8720
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 0x406875
ja 0x40684f
test eax, eax
jb 0x406875
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 0x406965
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.004f92f0
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.004f8720
mov dword [ebp + 0x29d], eax
mov dword [ebp + 0x2a1], edx
and eax, 0xc0000000
cmp edx, 0x1f4
jb 0x406957
ja 0x406921
test eax, eax
jb 0x406957
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.004a6ac0
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.00415090
add esp, 0x10
cmp dword [ebp + 0x4950], 0
je 0x4069c0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, edi
push edx
lea eax, [ebp + 0x4f]
push eax
call fcn.004f8140
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.00415030
lea edi, [ebp + 0x25c]
mov ecx, dword [ebp - 0x3c]
call fcn.00414fb0
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 0x406a3f
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.00415cf0
add esp, 0x18
test eax, eax
je 0x406cc8
jmp 0x406b6b
mov edi, dword [ebp - 0x4c]
test edi, edi
jne 0x406a8c
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.00415cf0
add esp, 0x18
test eax, eax
je 0x406cc8
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 0x406cc8
jmp 0x406a94
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.00405660
add esp, 0xc
test eax, eax
je 0x406cc8
add dword [ebp + 0x2c5], esi
test edi, edi
je 0x406b68
mov dword [ebp - 0x94], 0
push 0x34
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.004f8090
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.004052e0
push 0x405cb0
push 0x405840
push 0x405ca0
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 0x406cc8
mov esi, dword [ebp - 0x1c]
lea eax, [ebp]
call fcn.00415270
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 0x406ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406cc8
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 0x406cc8
cmp dword [ebp - 0x48], 0x4000
jne 0x406cc8
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x406be0
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 0x406c3a
mov esi, dword [ebp - 0x2c]
push esi
lea ecx, [ebp + 0x4308]
call fcn.00404660
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x406c27
test byte [ecx + 0x18], 1
je 0x406c27
test eax, eax
jne 0x406c4f
lea esi, [ebp + 0x4308]
call fcn.0040c940
mov dword [ebp - 0x38], 0
jmp 0x406c54
test eax, eax
jne 0x406c54
lea edx, [ebp + 0x4308]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406c54
test edi, edi
jne 0x406c54
cmp dword [ebp - 0x28], edi
je 0x406c54
mov eax, dword [ebp - 0x28]
test byte [eax + 0x18], 1
je 0x406c54
mov esi, dword [ebp - 0x2c]
call fcn.0040c940
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x406cb2
push 0x80
push 0
push ebx
call fcn.004f8090
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp + 0x4718]
push edx
push ebx
call fcn.004f8140
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.00415190
movzx ecx, ax
mov dword [ebx + 0x7c], ecx
cmp dword [ebp - 0x28], 0
je 0x406cc8
mov edx, dword [ebp - 0x28]
test byte [edx + 0x18], 1
je 0x406cc8
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00406cfc
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.004f8124
add ebp, 0x493c
mov esp, ebp
pop ebp
ret