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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b8208
push 0x46ae50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x249c4
call fcn.0046a620
mov eax, dword [0x4beb20]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4678], eax
mov byte [ebp - 0x44c], 0
push 0x1ff
xor edi, edi
push edi
lea ecx, [ebp - 0x44b]
push ecx
call fcn.00468830
add esp, 0xc
mov byte [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x49cc], al
push 0x303
push edi
lea edx, [ebp - 0x49cb]
push edx
call fcn.00468830
add esp, 0xc
xor eax, eax
mov word [ebp - 0x24c], ax
push 0x206
push edi
lea ecx, [ebp - 0x24a]
push ecx
call fcn.00468830
add esp, 0xc
mov dword [ebp - 0x4660], edi
mov dword [ebp - 0x4664], edi
mov dword [ebp - 0x4670], edi
mov dword [ebp - 0x466c], edi
push 0x4a3c90
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, esi
jne 0x403a06
mov dword [ebp - 0x466c], 1
lea esi, [eax + 0xa]
mov dword [ebp - 0x4668], esi
cmp esi, edi
jne 0x403a1f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40401e
push edi
push 0xa0000006
push 2
push edi
push edi
push 0xc0000000
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
mov dword [ebp - 0x4658], eax
cmp eax, 0xffffffff
jne 0x403b10
mov edx, dword [esi]
mov dword [ebp - 0x24c], edx
push str.LnvEstDisk
lea eax, [ebp - 0x24c]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call edi
push 0
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403a18
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4a38a0
lea ecx, [ebp - 0x654]
push ecx
call edi
mov eax, esi
call fcn.00405650
push eax
lea edx, [ebp - 0x654]
push edx
call edi
push 0
push 0xa0000006
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x654]
push eax
call ebx
mov dword [ebp - 0x4658], eax
cmp eax, 0xffffffff
jne 0x403afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40401e
mov dword [ebp - 0x4664], 1
mov eax, dword [ebp - 0x4658]
xor edi, edi
mov dword [ebp - 0x465c], edi
push edi
lea edx, [ebp - 0x4674]
push edx
push edi
push edi
push 4
lea ecx, [ebp - 0x465c]
push ecx
push 0x9c040
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 4], edi
mov eax, 1
mov dword [ebp - 0x4674], eax
mov dword [ebp - 0x465c], eax
mov edi, 0x20
mov dword [ebp - 0x4688], edi
lea ebx, [ebp - 0x44c]
call fcn.00405690
mov byte [ebp - 0x49cc], 1
mov byte [ebp - 0x49cb], 1
push edi
mov edx, ebx
push edx
lea eax, [ebp - 0x49c8]
push eax
call fcn.004688b0
add esp, 0xc
mov word [ebp - 0x49ca], di
lea edx, [ebp - 0x49cc]
call fcn.00407780
push 0x4000
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x4654]
push ecx
call fcn.00468830
add esp, 0xc
mov dword [ebp - 0x4654], 0x44564545
mov edx, 0x200
mov word [ebp - 0x463c], dx
mov eax, dword [str.E_SAFENET]
mov dword [ebp - 0x4650], eax
mov ecx, dword [0x4a3c80]
mov dword [ebp - 0x464c], ecx
mov dx, word [0x4a3c84]
mov word [ebp - 0x4648], dx
mov eax, dword [str.EDISK]
mov dword [ebp - 0x4644], eax
mov cx, word [0x4a3c8c]
mov word [ebp - 0x4640], cx
mov dword [ebp - 0x4634], 0x4000
mov byte [ebp - 0x4401], bl
mov eax, 0x2000
mov dword [ebp - 0x4400], eax
mov dword [ebp - 0x43fc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
shrd edx, eax, 9
shr eax, 9
push ebx
push 0x200
push eax
push edx
call fcn.00468dc0
mov esi, eax
mov dword [ebp - 0x4630], esi
mov edi, edx
mov dword [ebp - 0x462c], edi
and eax, 0xc0000000
cmp edi, 0x1f4
jb 0x403c91
ja 0x403c5b
cmp eax, ebx
jb 0x403c91
mov dword [ebp - 0x4630], 0x1f4000
mov dword [ebp - 0x462c], ebx
mov dword [ebp - 0x4630], ebx
mov dword [ebp - 0x462c], 0x1f4
mov esi, 0xfffff000
mov dword [ebp - 0x4630], esi
mov edi, 0x1f3
mov dword [ebp - 0x462c], edi
mov dword [ebp - 0x43a7], 0x200
mov dword [ebp - 0x43a3], 0x1f40
mov ecx, esi
mov edx, edi
shrd ecx, edx, 9
shr edx, 9
push ebx
push 0x1f40
push edx
push ecx
call fcn.0046b090
shrd eax, edx, 7
shr edx, 7
inc eax
mov dword [ebp - 0x439f], eax
mov dword [ebp - 0x439b], 1
mov dword [ebp - 0x4397], 0x20
add eax, eax
mov dword [ebp - 0x4393], eax
mov dword [ebp - 0x438f], 2
mov dword [ebp - 0x438b], ebx
shl eax, 9
mov ebx, eax
mov dword [ebp - 0x43af], ebx
push 0
push 2
push edi
push esi
call fcn.00468dc0
mov dword [ebp - 0x43b7], eax
mov dword [ebp - 0x43b3], edx
and eax, 0xc0000000
cmp edx, 0x1f4
jb 0x403d62
ja 0x403d2c
test eax, eax
jb 0x403d62
mov dword [ebp - 0x43b7], 0x1f4000
xor eax, eax
mov dword [ebp - 0x43b3], eax
mov dword [ebp - 0x43b7], eax
mov dword [ebp - 0x43b3], 0x1f4
mov dword [ebp - 0x43b7], 0xfffff000
mov dword [ebp - 0x43b3], 0x1f3
add ebx, 0x4000
mov dword [ebp - 0x43ab], ebx
lea eax, [ebp - 0x40]
push eax
push 0x20
lea ecx, [ebp - 0x44c]
push ecx
call fcn.0043c990
add esp, 0xc
mov ecx, 8
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x43d8]
rep movsd dword es:[edi], dword [esi]
push 0x20
mov ebx, dword [ebp - 0x4678]
mov ecx, ebx
lea edi, [ebp - 0x44c]
call fcn.00406280
add esp, 4
push 0x20
mov edx, edi
push edx
lea eax, [ebp - 0x4605]
push eax
call fcn.004688b0
add esp, 0xc
mov byte [ebp - 0x4403], 1
mov byte [ebp - 0x4402], 1
mov byte [ebp - 0x4608], 0
lea edi, [ebp - 0x4628]
lea esi, [ebp - 0x49cc]
call fcn.00406220
lea edi, [ebp - 0x43f8]
mov ecx, ebx
call fcn.004061a0
mov byte [ebp - 0x4607], 2
mov byte [ebp - 0x4606], 0
mov ecx, 0x20
mov word [ebp - 0x4405], cx
mov byte [ebp - 0x463a], 2
mov edi, dword [ebp - 0x466c]
mov ebx, dword [ebp - 0x4658]
test edi, edi
jne 0x403e65
mov edx, esi
push edx
mov eax, dword [ebp - 0x462c]
push eax
mov ecx, dword [ebp - 0x4630]
push ecx
push edi
mov edx, dword [ebp - 0x43ab]
push edx
push ebx
call fcn.00406ea0
add esp, 0x18
test eax, eax
je 0x40400c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x43ab]
cmp eax, ecx
jbe 0x40400c
jmp 0x403e6d
mov ecx, dword [ebp - 0x43ab]
mov eax, ecx
sub eax, ecx
shr eax, 9
mov ecx, dword [ebp - 0x43a3]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov esi, eax
push esi
lea eax, [ebp - 0x43a7]
push eax
push ebx
call fcn.00403240
add esp, 0xc
test eax, eax
je 0x40400c
add dword [ebp - 0x438f], esi
test edi, edi
je 0x403f4e
mov dword [ebp - 0x46c4], 0
push 0x34
push 0
lea ecx, [ebp - 0x46c0]
push ecx
call fcn.00468830
add esp, 0xc
mov ecx, 8
lea esi, [ebp - 0x43a7]
lea edi, [ebp - 0x46c0]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x46c4], ebx
mov edx, dword [ebp - 0x43ab]
shr edx, 9
mov dword [ebp - 0x469c], edx
lea eax, [ebp - 0x249dc]
mov dword [ebp - 0x46a0], eax
lea ecx, [ebp - 0x49cc]
mov dword [ebp - 0x4698], ecx
lea eax, [ebp - 0x46c4]
call fcn.00402f00
push 0x4038a0
push 0x403430
push 0x403890
mov edx, dword [ebp - 0x4630]
add edx, 0xfffffe00
mov eax, dword [ebp - 0x462c]
adc eax, 0xffffffff
push eax
push edx
lea ecx, [ebp - 0x46c4]
push ecx
call sym.ODMGuard.exe_FormatNTFS
add esp, 0x18
test eax, eax
je 0x40400c
lea eax, [ebp - 0x4654]
call fcn.00406380
xor eax, eax
mov dword [ebp - 0x4684], eax
mov dword [ebp - 0x4680], eax
push eax
lea edx, [ebp - 0x4680]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403f8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40400c
push 0
lea eax, [ebp - 0x465c]
push eax
push 0x4000
lea ecx, [ebp - 0x4654]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40400c
cmp dword [ebp - 0x465c], 0x4000
jne 0x40400c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4658], 0xffffffff
mov dword [ebp - 0x4660], 1
cmp dword [ebp - 0x4664], 0
je 0x404006
mov edx, dword [ebp - 0x4668]
push edx
lea ecx, [ebp - 0x654]
call fcn.00402910
add esp, 4
mov dword [ebp - 0x4660], eax
test eax, eax
jne 0x404006
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x4658]
mov dword [ebp - 4], 0xfffffffe
call fcn.00404040
mov eax, dword [ebp - 0x4660]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004694b0
mov esp, ebp
pop ebp
ret