Function at 0x40c6b0
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 0x4b3902
mov eax, dword fs:[0]
push eax
mov eax, 0x110c
call fcn.0043e850
mov eax, dword [0x4e9154]
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 0x40c6f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040c3d0
mov esi, eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040c480
cmp dword [esi + 0x14], 8
jb 0x40c725
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40c72d
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x1024]
cmp edx, 8
jb 0x40c775
mov ecx, dword [ebp - 0x1038]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c76b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb89
push edx
push ecx
call fcn.0043e828
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 0x40c7d9
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c7cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb8e
push edx
push ecx
call fcn.0043e828
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040c480
push eax
mov dword [ebp - 4], 1
call fcn.0040c540
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40c840
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c836
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb93
push edx
push ecx
call fcn.0043e828
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040c3d0
push eax
mov dword [ebp - 4], 2
call fcn.0040c540
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebp - 0x1020], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40c8b1
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c8a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb98
push edx
push ecx
call fcn.0043e828
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 0x40cb6d
cmp eax, 0xffffffff
je 0x40cb6d
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.0040cba0
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00481c80
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 0x40cb31
nop
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40cb31
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 0x40cb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1018], eax
call fcn.004417a0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x40cb08
push 0xa9
mov dword [ebp - 0x1028], ecx
mov byte [ebp - 0x1038], cl
lea ecx, [ebp - 0x1038]
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_clean_clientduplicate_file_mgrduplicate_file_mgr_srcduplicate_file_scandelete_file_log.cc
mov dword [ebp - 0x1024], 0xf
call fcn.004070c0
push 3
push 0x4bfab8
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.004070c0
mov byte [ebp - 4], 4
call fcn.004417a0
mov edi, eax
lea ecx, [ebp - 0x1118]
push 0x8c
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1068]
push eax
call fcn.00408fc0
mov esi, eax
push str._error__write_failed__err:
push esi
mov byte [ebp - 4], 5
call fcn.00409510
add esp, 8
mov ecx, esi
push dword [ebp - 0x1018]
call fcn.0040c1b0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1118]
call fcn.00409720
mov edx, dword [ebp - 0x1054]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40caac
mov ecx, dword [ebp - 0x1068]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40caa2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb89
push edx
push ecx
call fcn.0043e828
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 0x40cb08
mov ecx, dword [ebp - 0x1038]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cafe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb89
push edx
push ecx
call fcn.0043e828
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 0x40c960
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.0040c3d0
cmp dword [eax + 0x14], 8
jb 0x40cb5b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1080]
call fcn.00405a70
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.0043e83b
mov esp, ebp
pop ebp
ret
call fcn.004850e9
call fcn.004850e9
call fcn.004850e9
call fcn.004850e9
int3