Function at 0x40a730
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 0x4b0362
mov eax, dword fs:[0]
push eax
mov eax, 0x110c
call fcn.00441500
mov eax, dword [0x4e4150]
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 0x40a778
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a450
mov esi, eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040a500
cmp dword [esi + 0x14], 8
jb 0x40a7a5
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40a7ad
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x1024]
cmp edx, 8
jb 0x40a7f5
mov ecx, dword [ebp - 0x1038]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac09
push edx
push ecx
call fcn.0044122a
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 0x40a859
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a84f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac0e
push edx
push ecx
call fcn.0044122a
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a500
push eax
mov dword [ebp - 4], 1
call fcn.0040a5c0
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a8c0
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac13
push edx
push ecx
call fcn.0044122a
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a450
push eax
mov dword [ebp - 4], 2
call fcn.0040a5c0
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebp - 0x1020], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a931
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a921
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac18
push edx
push ecx
call fcn.0044122a
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 0x40abed
cmp eax, 0xffffffff
je 0x40abed
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.0040ac20
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0047e850
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 0x40abb1
nop
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40abb1
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 0x40ab88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1018], eax
call fcn.00440230
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x40ab88
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.004087e0
push 3
push 0x4bb7c0
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.004087e0
mov byte [ebp - 4], 4
call fcn.00440230
mov edi, eax
lea ecx, [ebp - 0x1118]
push 0x8c
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1068]
push eax
call fcn.00405c60
mov esi, eax
push str._error__write_failed__err:
push esi
mov byte [ebp - 4], 5
call fcn.00406b60
add esp, 8
mov ecx, esi
push dword [ebp - 0x1018]
call fcn.0040a230
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1118]
call fcn.00406d70
mov edx, dword [ebp - 0x1054]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40ab2c
mov ecx, dword [ebp - 0x1068]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac09
push edx
push ecx
call fcn.0044122a
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 0x40ab88
mov ecx, dword [ebp - 0x1038]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac09
push edx
push ecx
call fcn.0044122a
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 0x40a9e0
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.0040a450
cmp dword [eax + 0x14], 8
jb 0x40abdb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1080]
call fcn.00406650
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.004414e0
mov esp, ebp
pop ebp
ret
call fcn.00481cc9
call fcn.00481cc9
call fcn.00481cc9
call fcn.00481cc9
int3