Function at 0x417510
Capabilities:
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x70]
mov dword [ebp - 0x448], ecx
mov esi, edi
mov dword [ebp - 0x440], eax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417540
sub esi, ecx
xor ebx, ebx
sar esi, 1
mov dword [ebp - 0x44c], ebx
lea eax, [esi + 0x1e]
test eax, eax
je 0x417585
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d522
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x44c], ebx
mov word [ebx], ax
mov edx, edi
mov ecx, ebx
call fcn.0041ae30
lea ecx, [ebx + esi*2]
mov edx, str.:fc_verify
call fcn.0041ae30
mov eax, dword [ebp - 0x440]
mov eax, dword [eax + 0x18]
test al, 1
je 0x4175b3
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x448]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov eax, dword [edx + 0x888]
neg eax
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push 0
push 3
push 0x40000000
push edi
call esi
mov edi, eax
test ebx, ebx
mov eax, dword [ebp - 0x448]
mov ecx, 0x4c2758
cmovne ecx, ebx
push 0
mov eax, dword [eax + 0x888]
neg eax
sbb eax, eax
and eax, 0x2000000
push eax
push 2
push 0
push 3
push 0x40000000
push ecx
call esi
mov ecx, dword [ebp - 0x440]
mov esi, eax
mov eax, dword [ecx + 0x18]
test al, 1
je 0x41762b
push eax
lea eax, [ecx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x417926
cmp esi, 0xffffffff
je 0x417926
mov ebx, dword [ebp - 0x440]
lea ecx, [ebp - 0x41c]
xorps xmm0, xmm0
push ecx
movups xmmword [ebp - 0x41c], xmm0
lea eax, [ebx + 0x10]
push eax
movups xmmword [ebp - 0x43c], xmm0
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
xorps xmm0, xmm0
lea eax, [ebp - 0x42c]
push eax
movups xmmword [ebp - 0x42c], xmm0
movlpd qword [ebp - 0x46c], xmm0
movlpd qword [ebp - 0x464], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [ebp - 0x448]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x454], edx
lea ecx, [eax + 0x108c]
mov dword [ebp - 0x444], ecx
mov ecx, dword [eax + 0x10a4]
cmp ecx, 4
jne 0x4176fc
mov eax, 0x4c27e0
jmp 0x41775d
cmp ecx, 5
jne 0x417708
mov eax, 0x4c27e8
jmp 0x41775d
cmp ecx, 2
jne 0x417714
mov eax, 0x4c27f0
jmp 0x41775d
cmp ecx, 1
jne 0x417720
mov eax, 0x4c27f4
jmp 0x41775d
cmp ecx, 3
jne 0x41772c
mov eax, 0x4c27fc
jmp 0x41775d
cmp ecx, 6
jne 0x417738
mov eax, 0x4c2804
jmp 0x41775d
cmp ecx, 7
jne 0x417744
mov eax, 0x4c280c
jmp 0x41775d
cmp ecx, 8
mov dword [ebp - 0x450], 0x4c2824
mov eax, 0x4c2818
cmovne eax, dword [ebp - 0x450]
push eax
push dword [ebx + 0xc]
movzx eax, word [ebp - 0x430]
cmp edx, 2
push dword [ebx + 8]
mov ecx, str.error
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push eax
movzx eax, word [ebp - 0x432]
push eax
movzx eax, word [ebp - 0x434]
push eax
movzx eax, word [ebp - 0x436]
push eax
movzx eax, word [ebp - 0x43a]
push eax
movzx eax, word [ebp - 0x43c]
push eax
push dword [ebp - 0x460]
movzx eax, word [ebp - 0x420]
push dword [ebp - 0x464]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
movzx eax, word [ebp - 0x426]
push eax
movzx eax, word [ebp - 0x42a]
push eax
movzx eax, word [ebp - 0x42c]
push eax
mov eax, 0x4b03b0
cmovne eax, ecx
push eax
push str._s_04d_02d_02d__02d_02d_02d_0x_llx___ftime_04d_02d_02d__02d_02d_02d_0x_llx___size_lld___s
lea eax, [ebp - 0x40c]
push 0x400
push eax
call fcn.0045c9d0
lea ebx, [ebp - 0x40c]
add esp, 0x5c
add ebx, eax
mov eax, dword [ebp - 0x440]
add eax, 0x28
cmp dword [ebp - 0x454], 2
mov dword [ebp - 0x440], eax
jne 0x417844
mov ecx, dword [ebp - 0x444]
mov byte [ebx], 0x3d
inc ebx
push ebx
call fcn.00412720
mov ecx, dword [ebp - 0x440]
mov edx, eax
call fcn.0045c570
add esp, 4
add ebx, eax
jmp 0x4178a6
mov edx, 0x4b0420
mov ecx, ebx
call fcn.0041aee0
mov ecx, dword [ebp - 0x444]
add ebx, eax
push ebx
call fcn.00412720
mov ecx, dword [ebp - 0x440]
mov edx, eax
call fcn.0045c570
add esp, 4
add ebx, eax
mov edx, str.__dst
mov ecx, ebx
call fcn.0041aee0
mov ecx, dword [ebp - 0x444]
add ebx, eax
push ebx
call fcn.00412720
mov ecx, dword [ebp - 0x448]
mov edx, eax
lea ecx, [ecx + 0x10bc]
call fcn.0045c570
add ebx, eax
add esp, 4
mov byte [ebx], 0x29
inc ebx
mov edx, 0x4b0430
mov ecx, ebx
call fcn.0041aee0
lea ecx, [ebp - 0x40c]
push 0
sub ebx, ecx
lea ecx, [ebp - 0x458]
add eax, ebx
push ecx
push eax
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x4178fa
cmp edi, 0xffffffff
je 0x4178ed
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
xor esi, esi
test edi, edi
je 0x4178fa
cmp edi, 0xffffffff
je 0x4178fa
mov cl, 1
jmp 0x4178fc
xor cl, cl
push dword [ebp - 0x45c]
test cl, cl
mov eax, esi
push 0
push 0
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, dword [ebp - 0x44c]
mov dword [ebp - 0x444], 1
jmp 0x417930
mov dword [ebp - 0x444], 0
test esi, esi
je 0x417940
cmp esi, 0xffffffff
je 0x417940
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x417951
cmp edi, 0xffffffff
je 0x417951
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
test ebx, ebx
je 0x41795e
push ebx
call fcn.0047d4ed
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x444]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4