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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac8dc
mov eax, dword fs:[0]
push eax
sub esp, 0x508
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x40ac44
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 0x40ada2
push 0x8d
push str.d:jenkins.jenkinsworkspacepay_groupduplicate_file_cleanduplicate_file_mgrduplicate_file_mgr_srcduplicate_file_scandelete_file_log.cc
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], al
call fcn.004085b0
push 3
push 0x4b77c0
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0xf
mov byte [ebp - 0x434], 0
call fcn.004085b0
mov byte [ebp - 4], 1
call fcn.0043c710
mov edi, eax
lea ecx, [ebp - 0x514]
push 0x18
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x434]
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 - 0x514]
call fcn.00406b40
lea ecx, [ebp - 0x434]
call fcn.004063d0
lea ecx, [ebp - 0x44c]
call fcn.004063d0
jmp 0x40ada2
lea ecx, [ebp - 0x41c]
xorps xmm0, xmm0
push ecx
push eax
movq qword [ebp - 0x41c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x418]
cmp eax, dword [esi + 0xc]
jb 0x40ac7c
ja 0x40ac75
mov eax, dword [ebp - 0x41c]
cmp eax, dword [esi + 8]
jbe 0x40ac7c
mov ecx, esi
call fcn.0040a500
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0047adc0
lea eax, [ebp - 0x47c]
push eax
call fcn.0043ecc0
add esp, 0x10
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x40acad
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.0043b470
add esp, 0xc
mov ecx, eax
cmp dword [ebx + 0x14], 0x10
jb 0x40accc
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 0x10
jb 0x40acd4
mov edi, dword [edi]
cmp dword [ecx + 0x14], 0x10
jb 0x40acdc
mov ecx, dword [ecx]
movzx eax, byte [ebp + 0x18]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x410]
push dword [ebp + 0xc]
push edi
push dword [esi + 0x10]
push ecx
push str._s___d_:__s__size:_I64d__hash:_s__recycle:__d__n
push 0x400
push eax
call fcn.00409ae0
mov edx, dword [ebp - 0x450]
add esp, 0x28
cmp edx, 0x10
jb 0x40ad40
mov ecx, dword [ebp - 0x464]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40adc0
push edx
push ecx
call fcn.0043d70a
add esp, 8
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0xf
mov byte [ebp - 0x464], 0
call fcn.00406420
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x414], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ad80
push 0
lea eax, [ebp - 0x414]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
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 0x14
call fcn.0047e239
int3