Function at 0x40add0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac93c
mov eax, dword fs:[0]
push eax
sub esp, 0x840
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]
mov esi, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x40aef1
call fcn.0043c710
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40b0f8
push 0x8d
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_mgrduplicate_file_mgr_srcduplicate_file_scandelete_file_log.cc
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x820], 0xf
mov byte [ebp - 0x834], al
call fcn.004085b0
push 3
push 0x4b77c0
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0xf
mov byte [ebp - 0x84c], 0
call fcn.004085b0
mov byte [ebp - 4], 1
call fcn.0043c710
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x2f
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.00405a20
mov esi, eax
push str._error__delete_file_handle_is_invalid
push esi
mov byte [ebp - 4], 2
call fcn.00406930
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.00406b40
lea ecx, [ebp - 0x84c]
call fcn.004063d0
lea ecx, [ebp - 0x834]
call fcn.004063d0
jmp 0x40b0f8
lea ecx, [ebp - 0x818]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 0x818], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x814]
cmp eax, dword [ebx + 0xc]
jb 0x40af29
ja 0x40af22
mov eax, dword [ebp - 0x818]
cmp eax, dword [ebx + 8]
jbe 0x40af29
mov ecx, ebx
call fcn.0040a500
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x40b0f8
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0047adc0
lea eax, [ebp - 0x84c]
push eax
call fcn.0043ecc0
add esp, 0x10
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x40af67
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x834]
push eax
call fcn.0043b470
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40af84
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x40af8c
mov eax, dword [eax]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebx + 0x10]
push eax
push str._s___d_:_same_files__size:_I64d__hash:_s__n
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00409ae0
mov edx, dword [ebp - 0x820]
add esp, 0x20
cmp edx, 0x10
jb 0x40afea
mov ecx, dword [ebp - 0x834]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40afe0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b116
push edx
push ecx
call fcn.0043d70a
add esp, 8
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0xf
mov byte [ebp - 0x834], 0
cmp edx, 8
jb 0x40b045
mov ecx, dword [ebp - 0x84c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b03b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b11b
push edx
push ecx
call fcn.0043d70a
add esp, 8
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x81c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b058
push 0
lea eax, [ebp - 0x81c]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [edi]
mov esi, dword [edi]
cmp esi, edi
je 0x40b0f8
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0047adc0
lea eax, [esi + 8]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x40b0a3
mov eax, dword [eax]
push eax
push 0x4b7a64
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00409ae0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x814], 0
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b0d0
push 0
lea eax, [ebp - 0x814]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x810]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esi]
cmp esi, edi
jne 0x40b082
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 0x10
call fcn.0047e239
call fcn.0047e239
int3