Function at 0x10003f20
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1001b128]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x224], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x14], eax
xor eax, eax
test ebx, ebx
mov ecx, 0x41
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
je 0x10003fb8
cmp byte [ebx], 0
je 0x10003fb8
push 0x5c
push ebx
call fcn.10007710
add esp, 8
test eax, eax
jne 0x10004004
push 0x105
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.1000778b
add esp, 8
test eax, eax
je 0x10003f9d
mov byte [eax + 1], 0
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x10003fb1
inc eax
dec ecx
jne 0x10003fa6
jmp 0x10004000
test ecx, ecx
je 0x10004000
push ebx
jmp 0x10003fe7
push 0x105
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x105
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x10003fde
inc eax
dec ecx
jne 0x10003fd3
jmp 0x10004000
test ecx, ecx
je 0x10004000
push 0x10016350
mov eax, 0x105
sub eax, ecx
mov ecx, 0x105
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.10002500
lea ebx, [esp + 0x18]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004156
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
shl ecx, 0xa
cmp eax, ecx
jbe 0x10004118
cmp eax, 0xffffffff
je 0x10004118
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x105
push ebx
lea edx, [esp + 0x128]
xor eax, eax
mov byte [esp + 0x128], 0
mov ecx, 0x41
lea edi, [esp + 0x129]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x120]
push 0x2e
push eax
call fcn.1000778b
add esp, 8
test eax, eax
je 0x10004091
mov byte [eax], 0
mov ecx, 0x105
lea eax, [esp + 0x120]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x100040ab
inc eax
dec ecx
jne 0x100040a0
jmp 0x100040d0
test ecx, ecx
je 0x100040d0
mov eax, 0x105
sub eax, ecx
push 0x10016348
mov ecx, 0x105
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x128]
push edx
call fcn.10002500
push 0x80
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x120]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x14]
mov eax, edi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004136
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007bf7
mov esp, ebp
pop ebp
ret