Function at 0x403f96
Capabilities:
Copy file
Get file size
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x238
mov ebx, dword [ebp + 0xc]
push 0
push 0x41d8a0
push ebx
mov edi, 1
call fcn.004065df
add esp, 0xc
test eax, eax
jne 0x403fce
cmp dword [0x425910], 0
je 0x403fce
push 0x425aa6
jmp 0x403fd3
push 0x4259a1
lea eax, [ebp - 0x130]
push eax
call fcn.004098e0
pop ecx
pop ecx
lea eax, [ebp - 0x130]
push ebx
push eax
lea eax, [ebp - 0x238]
push 0x427c36
push eax
call fcn.0040b2b0
lea eax, [ebp - 0x238]
add esp, 0x10
push 0
push dword [ebp + 8]
push eax
call fcn.004065df
add esp, 0xc
test eax, eax
jne 0x40401f
mov eax, 2
jmp 0x4042a5
cmp dword [ebp + 0x10], 0
je 0x404044
lea eax, [ebp - 0x238]
push dword [0x427ae4]
push 0x425aa6
push 0x427c36
push eax
call fcn.0040b2b0
add esp, 0x10
lea eax, [ebp - 0x238]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4040bd
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp + 0x10], 0
jne 0x40408c
mov edx, dword [0x427c9c]
mov dword [ebp - 0x1c], edx
push esi
mov eax, dword [0x427ca0]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
jne 0x4040bd
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x4040bd
mov eax, 1
jmp 0x4042a5
cmp dword [ebp + 0x10], 0
jne 0x404129
lea eax, [ebp - 0x130]
push ebx
push eax
lea eax, [ebp - 0x238]
push 0x427c36
push eax
call fcn.0040b2b0
lea eax, [ebp - 0x238]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x130]
push ebx
push eax
lea eax, [ebp - 0x238]
push 0x427c36
push eax
call fcn.0040b2b0
add esp, 0x10
cmp dword [0x427c3c], 0
je 0x404159
cmp dword [0x427c40], 0
je 0x404159
xor edi, edi
lea eax, [ebp - 0x238]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4042a3
lea eax, [ebp - 0x238]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x240], eax
jne 0x4041a8
mov eax, 3
jmp 0x4042a5
push 0
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x23c]
sub esi, eax
cmp dword [ebp + 0x10], 0
je 0x4041e8
push 0
call fcn.0040b720
pop ecx
push eax
call fcn.0040be50
pop ecx
call fcn.0040be10
cdq
mov esi, 0xffff
idiv esi
mov eax, edx
cdq
idiv dword [ebp + 0x10]
mov esi, eax
test esi, esi
je 0x404268
test esi, esi
jle 0x4041fb
push esi
call fcn.0040c4c0
mov ebx, eax
pop ecx
jmp 0x40420d
push 0x8000
call fcn.0040c4c0
mov esi, 0x8000
pop ecx
mov ebx, eax
push 0
call fcn.0040b720
pop ecx
push eax
call fcn.0040be50
xor edi, edi
pop ecx
test esi, esi
jle 0x404237
call fcn.0040be10
cdq
mov ecx, 0xff
idiv ecx
mov byte [ebx + edi], dl
inc edi
cmp edi, esi
jl 0x404222
push 2
push 0
push 0
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x28]
push 0
push eax
push esi
push ebx
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ebx, ebx
je 0x404268
push ebx
call fcn.0040c510
pop ecx
cmp dword [ebp + 0x10], 0
jne 0x40427f
mov edx, dword [0x427ca0]
mov eax, dword [0x427c9c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push ecx
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret