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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6ce2
mov eax, dword fs:[0]
push eax
mov eax, 0x110c
call fcn.0043a110
mov eax, dword [0x4d9180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x40a358
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a040
mov esi, eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040a0f0
cmp dword [esi + 0x14], 8
jb 0x40a385
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40a38d
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x1024]
cmp edx, 8
jb 0x40a3d5
mov ecx, dword [ebp - 0x1038]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7e6
push edx
push ecx
call fcn.00439e3a
add esp, 8
mov edx, dword [ebp - 0x103c]
xor eax, eax
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 7
mov word [ebp - 0x1038], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a439
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a42f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7eb
push edx
push ecx
call fcn.00439e3a
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a0f0
push eax
mov dword [ebp - 4], 1
call fcn.0040a1a0
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a4a0
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a496
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7f0
push edx
push ecx
call fcn.00439e3a
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a040
push eax
mov dword [ebp - 4], 2
call fcn.0040a1a0
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebp - 0x1020], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a511
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7f5
push edx
push ecx
call fcn.00439e3a
mov eax, dword [ebp - 0x1020]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x1040], 0
cmp dword [ebx], 0xffffffff
mov dword [ebp - 0x103c], 7
mov word [ebp - 0x1050], cx
je 0x40a7ca
cmp eax, 0xffffffff
je 0x40a7ca
lea ecx, [ebp - 0x101c]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 0x101c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 0x101c]
mov eax, dword [ebp - 0x1018]
mov esi, dword [ebp - 0x1020]
shrd ecx, eax, 1
push 1
shr eax, 1
push eax
push ecx
push esi
call fcn.0040a800
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00475800
add esp, 0x1c
mov dword [ebp - 0x1014], 0
lea eax, [ebp - 0x1014]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a78e
nop
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40a78e
push 0
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a765
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1018], eax
call fcn.00438e40
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x40a765
push 0x8d
mov dword [ebp - 0x1028], ecx
mov byte [ebp - 0x1038], cl
lea ecx, [ebp - 0x1038]
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_mgrduplicate_file_mgr_srcduplicate_file_scandelete_file_log.cc
mov dword [ebp - 0x1024], 0xf
call fcn.004083d0
push 3
push 0x4b17c0
lea ecx, [ebp - 0x1068]
mov dword [ebp - 4], 3
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0xf
mov byte [ebp - 0x1068], 0
call fcn.004083d0
mov byte [ebp - 4], 4
call fcn.00438e40
mov edi, eax
lea ecx, [ebp - 0x1118]
push 0x62
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1068]
push eax
call fcn.00405850
mov esi, eax
push str._error__write_failed__err:
push esi
mov byte [ebp - 4], 5
call fcn.00406750
add esp, 8
mov ecx, esi
push dword [ebp - 0x1018]
call fcn.00409e20
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1118]
call fcn.00406960
mov edx, dword [ebp - 0x1054]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40a709
mov ecx, dword [ebp - 0x1068]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7e6
push edx
push ecx
call fcn.00439e3a
add esp, 8
mov edx, dword [ebp - 0x1024]
mov dword [ebp - 0x1058], 0
mov dword [ebp - 0x1054], 0xf
mov byte [ebp - 0x1068], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40a765
mov ecx, dword [ebp - 0x1038]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a75b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7e6
push edx
push ecx
call fcn.00439e3a
add esp, 8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1020]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a5c0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x1020]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1080]
mov ecx, ebx
push eax
call fcn.0040a040
cmp dword [eax + 0x14], 8
jb 0x40a7b8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1080]
call fcn.00406240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a0f2
mov esp, ebp
pop ebp
ret
call fcn.00478c79
call fcn.00478c79
call fcn.00478c79
call fcn.00478c79
int3