Function at 0x40a500
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 0x4ac842
mov eax, dword fs:[0]
push eax
mov eax, 0x110c
call fcn.0043d9e0
mov eax, dword [0x4e0150]
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 0x40a548
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a220
mov esi, eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040a2d0
cmp dword [esi + 0x14], 8
jb 0x40a575
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x40a57d
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x1024]
cmp edx, 8
jb 0x40a5c5
mov ecx, dword [ebp - 0x1038]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9d9
push edx
push ecx
call fcn.0043d70a
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 0x40a629
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a61f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9de
push edx
push ecx
call fcn.0043d70a
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a2d0
push eax
mov dword [ebp - 4], 1
call fcn.0040a390
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a690
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a686
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9e3
push edx
push ecx
call fcn.0043d70a
add esp, 8
lea eax, [ebp - 0x1050]
mov ecx, ebx
push eax
call fcn.0040a220
push eax
mov dword [ebp - 4], 2
call fcn.0040a390
mov edx, dword [ebp - 0x103c]
add esp, 4
mov dword [ebp - 0x1020], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a701
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9e8
push edx
push ecx
call fcn.0043d70a
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 0x40a9bd
cmp eax, 0xffffffff
je 0x40a9bd
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.0040a9f0
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0047adc0
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 0x40a981
nop
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40a981
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 0x40a958
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1018], eax
call fcn.0043c710
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x40a958
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.004085b0
push 3
push 0x4b77c0
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.004085b0
mov byte [ebp - 4], 4
call fcn.0043c710
mov edi, eax
lea ecx, [ebp - 0x1118]
push 0x8c
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1068]
push eax
call fcn.00405a20
mov esi, eax
push str._error__write_failed__err:
push esi
mov byte [ebp - 4], 5
call fcn.00406930
add esp, 8
mov ecx, esi
push dword [ebp - 0x1018]
call fcn.0040a000
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1118]
call fcn.00406b40
mov edx, dword [ebp - 0x1054]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40a8fc
mov ecx, dword [ebp - 0x1068]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9d9
push edx
push ecx
call fcn.0043d70a
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 0x40a958
mov ecx, dword [ebp - 0x1038]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a94e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a9d9
push edx
push ecx
call fcn.0043d70a
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 0x40a7b0
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.0040a220
cmp dword [eax + 0x14], 8
jb 0x40a9ab
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1080]
call fcn.00406420
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.0043d9c0
mov esp, ebp
pop ebp
ret
call fcn.0047e239
call fcn.0047e239
call fcn.0047e239
call fcn.0047e239
int3