Function at 0x401da0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x430
mov al, byte [0x40ada0]
push esi
push edi
mov byte [esp + 0x21c], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x21d]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [0x40aeb0]
cmp eax, esi
je 0x402080
push ebx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [0x40aeb0]
mov ebp, eax
mov ecx, ebp
push 1
neg ecx
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x40aeac]
cmp edx, esi
je 0x401fab
lea eax, [esp + 0x10]
push esi
push eax
mov edi, str._________________________________________________________r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], esi
not ecx
dec ecx
mov dword [esp + 0x1c], esi
push ecx
push str._________________________________________________________r_n
push edx
call ebx
test ebp, ebp
jle 0x401ea2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x40aeb0]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x22c]
push 0x104
push edx
push eax
call edi
mov ecx, dword [esp + 0x14]
add esi, ecx
cmp eax, 1
jne 0x401e9e
lea edx, [esp + 0x10]
push 0
push edx
push ecx
mov ecx, dword [0x40aeac]
lea eax, [esp + 0x230]
push eax
push ecx
call ebx
mov edx, dword [0x40aeac]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp esi, ebp
jl 0x401e51
mov al, byte [0x40ada0]
mov ecx, pe_nt_image_headers32
mov byte [esp + 0x120], al
xor eax, eax
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004031d3
lea edx, [esp + 0x1c]
push edx
call fcn.004031ba
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
xor ebp, ebp
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push ebp
push eax
mov edi, str._________________________________________________________r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [0x40aeac]
push str._________________________________________________________r_n
push ecx
call ebx
mov edi, str._Time_Stamp__r_n
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [0x40aeac]
push ebp
not ecx
dec ecx
push edx
push ecx
push str._Time_Stamp__r_n
push eax
call ebx
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x40aeac]
lea edx, [esp + 0x128]
not ecx
dec ecx
push ecx
push edx
push eax
call ebx
mov ecx, dword [0x40aeb0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x40aeac]
push edx
call esi
mov dword [0x40aeb0], ebp
mov dword [0x40aeac], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40afbc
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, 0x40ada4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a0d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DirectoryRemovalUtility.log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x328]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call fcn.004029d0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x402066
lea edx, [esp + 0x1c]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
push 0x40aeb8
call fcn.0040318c
push esi
call fcn.00402a9a
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x430
ret