Function at 0x10001d5a
Capabilities:
Check if file exists
Clear file content
Copy file
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
and byte [ebp - 0x128], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10001da8
push dword [ebp + 0x10]
add eax, 0x110
mov ebx, 0x104
push eax
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.10007fff
add esp, 0x10
jmp 0x10001dbe
mov ebx, 0x104
lea eax, [ebp - 0x128]
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0xffffffffffffffff
push 1
pop edi
lea eax, [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push eax
lea eax, [ebp - 0x24]
push 8
push eax
lea eax, [ebp - 0x128]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0x498
push dword [ebp + 8]
call fcn.10001c8a
add esp, 0x28
test eax, eax
jne 0x10001e09
push dword [ebp + 0x10]
push dword [ebp - 8]
push 9
jmp 0x10001f5f
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x10001e1f
push dword [ebp + 0x10]
push 2
push 5
jmp 0x10001f5f
push eax
lea eax, [ebp - 0x128]
push eax
push str.hupipe.cpp:SrcFileSize_s__u
push edi
call fcn.100046ca
add esp, 0x10
lea eax, [ebp - 8]
push 0xffffffffffffffff
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
lea eax, [ebp - 0x128]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0x49a
push dword [ebp + 8]
call fcn.10001c8a
add esp, 0x28
test eax, eax
je 0x10001dfc
cmp dword [ebp - 0x10], 0
jne 0x10001e76
cmp dword [ebp - 0x14], 0
je 0x10001e13
push dword [ebp - 0x14]
lea eax, [ebp - 0x128]
push dword [ebp - 0x10]
push eax
push str.hupipe.cpp:SrcFileTime_s__08x__08x
push edi
call fcn.100046ca
mov al, byte [0x1001d970]
add esp, 0x14
mov byte [ebp - 0x22c], al
xor eax, eax
push 0x40
lea edi, [ebp - 0x22b]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10001ece
add eax, 0x110
push eax
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.10007fff
add esp, 0x10
jmp 0x10001edf
push ebx
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x22c]
push eax
call fcn.1000790a
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.10007fff
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x14
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x330]
push eax
call edi
lea eax, [ebp - 0x330]
push eax
call esi
mov byte [ebp + eax - 0x331], 0x5f
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10001f48
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0xc]
je 0x10001f48
push dword [ebp + 0x10]
push 0x570
jmp 0x10001e18
push dword [ebp - 0xc]
call fcn.10009019
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
jne 0x10001f6c
push dword [ebp + 0x10]
push 0xe
push 2
call fcn.10002bab
add esp, 0xc
jmp 0x100021e7
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x434]
push eax
call edi
lea eax, [ebp - 0x128]
push eax
call esi
xor edi, edi
add eax, 9
xor ebx, ebx
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], eax
jbe 0x1000208d
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
sub edi, ebx
cmp edi, ecx
jbe 0x10001fa9
mov edi, ecx
mov eax, ebx
xor edx, edx
div ecx
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
add eax, ebx
push edi
push eax
lea eax, [ebp - 0x43c]
push dword [ebp - 0x1c]
push eax
push ecx
push 0x499
push dword [ebp + 8]
call fcn.10001c8a
add esp, 0x28
test eax, eax
je 0x10002037
cmp dword [ebp - 8], edi
jne 0x1000204f
cmp dword [ebp + 0x1c], 0
je 0x10002029
test esi, esi
je 0x10002029
mov ecx, dword [esi + 0xc]
inc dword [esi + 8]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x10002021
imul eax, eax, 0x64
cdq
idiv dword [esi + 4]
push eax
push dword [ebp + 0x10]
push str._s___d___
push ecx
push dword [esi + 0x10]
call fcn.10009161
add esp, 0x14
push esi
call dword [ebp + 0x1c]
test eax, eax
jne 0x1000206f
add ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp - 0xc]
jb 0x10001f9b
jmp 0x1000208b
push dword [ebp - 8]
push ebx
push str.hupipe.cpp:file_transfer_error_d__d
push 1
call fcn.100046ca
push dword [ebp + 0x10]
push dword [ebp - 8]
jmp 0x10002063
push 0x3a
push ebx
push str.hupipe.cpp:file_transfer_error_d__d
push 1
call fcn.100046ca
push dword [ebp + 0x10]
push 0x3a
push 9
call fcn.10002bab
add esp, 0x1c
jmp 0x10002080
push 0
push 0x4c7
push 3
call fcn.10002bab
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
jne 0x100021c2
xor edi, edi
lea eax, [ebp - 0x330]
push edi
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100020cb
call esi
cmp eax, 2
je 0x100020cb
push dword [ebp + 0x10]
call esi
push eax
push 0xc
call fcn.10002bab
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x100021c2
push edi
push 0x80
push 4
push edi
push edi
lea eax, [ebp - 0x22c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002154
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002138
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14]
test eax, eax
je 0x1000214b
cmp dword [ebp - 0x10], edi
jne 0x10002129
cmp dword [ebp - 0x14], edi
je 0x1000214b
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1000214b
push dword [ebp + 0x10]
call esi
push eax
push 0xa
call fcn.10002bab
add esp, 0xc
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002167
push dword [ebp + 0x10]
call esi
push eax
push 0xb
call fcn.10002bab
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], edi
lea eax, [ebp - 0x22c]
push eax
je 0x1000217d
push dword [ebp + 0x18]
call sym.v3hunt.dll_V3Net_IsFileEqual
jmp 0x10002183
push edi
call sym.v3hunt.dll_V3Net_IsFileValid
pop ecx
test eax, eax
pop ecx
jne 0x1000219b
push dword [ebp + 0x10]
push 0x17
push 7
call fcn.10002bab
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x100021c2
lea eax, [ebp - 0x22c]
push edi
push eax
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
call fcn.10008f30
pop ecx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
push str.hupipe.cpp:ReceiveFile2___d___s
push 1
call fcn.100046ca
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret