Function at 0x40a4d7
Capabilities:
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push 0x14
mov eax, 0x443840
call fcn.004420ed
mov ebx, ecx
mov esi, dword [ebp + 0x10]
lea edi, [ebx + 0xc]
mov ecx, dword [edi]
test ecx, ecx
je 0x40a4fc
push dword [ebx + 0x18]
mov eax, dword [ecx]
push esi
push 1
call dword [eax + 0xc]
mov ecx, edi
call fcn.0040c53e
test al, al
je 0x40a511
mov eax, 0xe0000008
jmp 0x40a70b
test esi, esi
je 0x40a530
cmp esi, dword [ebp + 0x14]
jne 0x40a530
mov ecx, dword [edi]
test ecx, ecx
je 0x40a529
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor eax, eax
jmp 0x40a70b
push ecx
lea ecx, [ebx + 0x1c]
call fcn.004053c5
mov esi, eax
pop ecx
test esi, esi
je 0x40a550
push 0
push esi
push ecx
mov ecx, edi
call fcn.0040c522
jmp 0x40a709
mov esi, dword [ebp + 0x14]
mov ecx, ebx
push esi
call fcn.0040a8e7
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x40a598
mov ecx, edi
call fcn.0040c53e
test al, al
je 0x40a57d
mov esi, 0xe0000008
jmp 0x40a590
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov esi, eax
push esi
push ecx
mov ecx, edi
call fcn.0040c522
mov eax, dword [ebp - 0x20]
jmp 0x40a702
mov ecx, dword [edi]
test esi, esi
je 0x40a5a5
test ecx, ecx
je 0x40a5b0
push esi
jmp 0x40a5ab
test ecx, ecx
je 0x40a5b0
push 0
mov eax, dword [ecx]
call dword [eax + 0x1c]
and dword [ebp + 0x14], 0
mov eax, 0xc800
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x14]
call fcn.00403c85
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push dword [ebx + 4]
call fcn.0040adef
and dword [ebp - 0x10], 0
mov esi, eax
test esi, esi
jne 0x40a698
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a662
mov ecx, 0xc800
cmp eax, ecx
cmova eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebx + 4]
call fcn.0040ad53
mov esi, eax
test esi, esi
jne 0x40a698
cmp dword [ebp - 0x10], eax
je 0x40a662
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a713
mov ecx, dword [edi]
test ecx, ecx
je 0x40a63e
mov eax, dword [ecx]
push dword [ebp - 0x18]
call dword [eax + 0x1c]
lea eax, [ebx + 0x38]
mov ecx, edi
push eax
call fcn.0040c555
mov ecx, edi
call fcn.0040c53e
test al, al
je 0x40a5c6
mov esi, 0xe0000008
jmp 0x40a6f2
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x20]
jbe 0x40a724
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
jae 0x40a724
cmp byte [ebx + 0x88], 0
je 0x40a71d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
jmp 0x40a6cb
cmp esi, 0x2ee2
je 0x40a6b8
cmp esi, 0x2efe
je 0x40a6b8
cmp esi, 0x2eff
je 0x40a6b8
cmp esi, 0x2f83
jne 0x40a6df
cmp byte [ebx + 0x88], 0
je 0x40a6df
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, ebx
call fcn.0040acab
mov esi, eax
test esi, esi
je 0x40a5c6
cmp esi, 0xe0000008
je 0x40a6f2
push 0
push esi
push ecx
mov ecx, edi
call fcn.0040c522
push dword [ebp + 0x14]
call fcn.0042e92f
mov eax, dword [ebp - 0x20]
pop ecx
test eax, eax
je 0x40a709
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004420b6
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40a6e7
mov esi, 0xe000000f
jmp 0x40a6e7
test esi, esi
je 0x40a734
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x20], esi
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a713
mov ecx, dword [edi]
test ecx, ecx
je 0x40a75c
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 0x10]
xor esi, esi
jmp 0x40a6f2