Function at 0x418480
Capabilities:
Resolve function by parsing pe exports
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x478
mov eax, dword [0x4db06c]
xor eax, esp
mov dword [esp + 0x474], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x70]
mov esi, ecx
mov dword [esp + 0x10], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4184b3
sub esi, edx
xor eax, eax
sar esi, 1
mov dword [esp + 0x1c], eax
lea edx, [esi + 0x1e]
test edx, edx
je 0x4184f7
lea eax, [edx + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487989
add esp, 4
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov word [eax], cx
lea ecx, [edi + 0x70]
mov edx, eax
movzx eax, word [ecx]
test ax, ax
je 0x418514
sub ecx, dword [esp + 0x1c]
mov word [edx], ax
add edx, 2
movzx eax, word [ecx + edx]
test ax, ax
jne 0x418505
movzx eax, word [edx - 2]
lea ecx, [edx - 2]
add eax, 0x2800
mov dword [esp + 0xc], 0x3ff
cmp ax, word [esp + 0xc]
cmova ecx, edx
xor eax, eax
mov word [ecx], ax
mov ecx, str.:fc_verify
mov eax, dword [esp + 0x1c]
lea edx, [eax + esi*2]
mov eax, 0x3a
sub ecx, edx
nop dword [eax + eax]
mov word [edx], ax
add edx, 2
movzx eax, word [ecx + edx]
test ax, ax
jne 0x418550
movzx eax, word [edx - 2]
lea ecx, [edx - 2]
add eax, 0x2800
lea esi, [edi + 0x70]
cmp ax, word [esp + 0xc]
cmova ecx, edx
xor eax, eax
mov word [ecx], ax
mov eax, dword [edi + 0x18]
test al, 1
je 0x418590
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL30.dll_SetFileAttributesW]
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
test eax, 0x400
je 0x4185b2
mov eax, dword [edx + 0x6a0]
and eax, 0x4000
or eax, 0
jne 0x4185b2
mov ecx, 0x200000
jmp 0x4185b4
xor ecx, ecx
mov eax, dword [edx + 0x898]
mov edx, 0x40000000
neg eax
push 0x700
sbb eax, eax
push ecx
and eax, 0x2000000
or eax, ecx
push eax
push 3
push ecx
push 3
mov ecx, esi
call fcn.0045cff0
add esp, 0x18
mov esi, eax
test dword [edi + 0x18], 0x400
mov edi, dword [esp + 0x14]
je 0x418606
mov eax, dword [edi + 0x6a0]
and eax, 0x4000
or eax, 0
jne 0x418606
mov edx, 0x200000
jmp 0x418608
xor edx, edx
mov eax, dword [esp + 0x1c]
mov ecx, 0x4c1430
test eax, eax
push 0
cmovne ecx, eax
mov eax, dword [edi + 0x898]
neg eax
sbb eax, eax
and eax, 0x2000000
or eax, edx
push eax
push 2
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL30.dll_CreateFileW]
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
test cl, 1
je 0x418659
push ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL30.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
test edi, edi
je 0x418971
cmp edi, 0xffffffff
je 0x418971
test esi, esi
je 0x418677
cmp esi, 0xffffffff
je 0x418677
mov cl, 1
jmp 0x418679
xor cl, cl
add eax, 0x10
test cl, cl
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
push eax
push 0
mov eax, edi
push 0
cmovne eax, esi
push eax
call dword [sym.imp.KERNEL30.dll_GetFileTime]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x4186ac
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x60]
xorps xmm0, xmm0
push eax
push ecx
movaps xmmword [esp + 0x68], xmm0
movaps xmmword [esp + 0x58], xmm0
call dword [sym.imp.KERNEL30.dll_FileTimeToSystemTime]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL30.dll_SystemTimeToTzSpecificLocalTime]
xorps xmm0, xmm0
lea eax, [esp + 0x40]
push eax
movaps xmmword [esp + 0x44], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL30.dll_GetLocalTime]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL30.dll_SystemTimeToFileTime]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL30.dll_LocalFileTimeToFileTime]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x10a4]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x10bc]
cmp ecx, 4
jne 0x418741
mov eax, 0x4c1510
jmp 0x41879e
cmp ecx, 5
jne 0x41874d
mov eax, 0x4c1518
jmp 0x41879e
cmp ecx, 2
jne 0x418759
mov eax, 0x4c1520
jmp 0x41879e
cmp ecx, 1
jne 0x418765
mov eax, 0x4c1524
jmp 0x41879e
cmp ecx, 3
jne 0x418771
mov eax, 0x4c152c
jmp 0x41879e
cmp ecx, 6
jne 0x41877d
mov eax, 0x4c1534
jmp 0x41879e
cmp ecx, 7
jne 0x418789
mov eax, 0x4c153c
jmp 0x41879e
cmp ecx, 8
mov dword [esp + 0x20], 0x4c1554
mov eax, 0x4c1548
cmovne eax, dword [esp + 0x20]
push eax
push dword [edx + 0xc]
movzx eax, word [esp + 0x64]
mov ecx, 0x4c1f8c
push dword [edx + 8]
cmp dword [esp + 0x1c], 2
push dword [edx + 0x14]
push dword [edx + 0x10]
push eax
movzx eax, word [esp + 0x72]
push eax
movzx eax, word [esp + 0x74]
push eax
movzx eax, word [esp + 0x76]
push eax
movzx eax, word [esp + 0x76]
push eax
movzx eax, word [esp + 0x78]
push eax
push dword [esp + 0x58]
movzx eax, word [esp + 0x7c]
push dword [esp + 0x58]
push eax
movzx eax, word [esp + 0x82]
push eax
movzx eax, word [esp + 0x84]
push eax
movzx eax, word [esp + 0x86]
push eax
movzx eax, word [esp + 0x86]
push eax
movzx eax, word [esp + 0x88]
push eax
mov eax, 0x4c1f84
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, [esp + 0xcc]
push 0x400
push eax
call fcn.00462e40
add esp, 0x5c
cmp dword [esp + 0x10], 2
lea eax, [esp + eax + 0x78]
jne 0x418870
mov ecx, dword [esp + 0xc]
mov byte [eax], 0x3d
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00412b10
mov ecx, dword [esp + 0x1c]
mov edx, eax
lea ecx, [ecx + 0x28]
call fcn.004629e0
mov ecx, dword [esp + 0x14]
add esp, 4
add ecx, eax
jmp 0x4188f8
mov edx, str._src
mov cl, 0x28
sub edx, eax
nop dword [eax]
mov byte [eax], cl
inc eax
mov cl, byte [edx + eax]
test cl, cl
jne 0x418880
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
push eax
mov dword [esp + 0x14], eax
call fcn.00412b10
mov ecx, dword [esp + 0x1c]
mov edx, eax
lea ecx, [ecx + 0x28]
call fcn.004629e0
mov ecx, dword [esp + 0x14]
mov edx, str.__dst
add eax, ecx
add esp, 4
mov cl, 0x2c
sub edx, eax
nop word [eax + eax]
mov byte [eax], cl
inc eax
mov cl, byte [edx + eax]
test cl, cl
jne 0x4188c0
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
push eax
mov dword [esp + 0x24], eax
call fcn.00412b10
mov ecx, dword [esp + 0x18]
mov edx, eax
lea ecx, [ecx + 0x10d4]
call fcn.004629e0
mov ecx, eax
add esp, 4
add ecx, dword [esp + 0x20]
mov byte [ecx], 0x29
inc ecx
mov edx, 0x4c2008
mov al, 0x7d
sub edx, ecx
mov byte [ecx], al
inc ecx
mov al, byte [edx + ecx]
test al, al
jne 0x418901
mov byte [ecx], al
lea eax, [esp + 0x78]
sub ecx, eax
lea eax, [esp + 0x24]
push 0
push eax
push ecx
lea eax, [esp + 0x84]
mov dword [esp + 0x30], ecx
push eax
push edi
call dword [sym.imp.KERNEL30.dll_WriteFile]
test esi, esi
je 0x41894e
cmp esi, 0xffffffff
je 0x418941
mov eax, dword [sym.imp.KERNEL30.dll_CloseHandle]
push edi
call eax
xor edi, edi
test esi, esi
je 0x41894e
cmp esi, 0xffffffff
je 0x41894e
mov cl, 1
jmp 0x418950
xor cl, cl
lea eax, [esp + 0x30]
test cl, cl
push eax
push 0
mov eax, edi
push 0
cmovne eax, esi
push eax
call dword [sym.imp.KERNEL30.dll_SetFileTime]
mov dword [esp + 0xc], 1
jmp 0x418979
mov dword [esp + 0xc], 0
test edi, edi
je 0x418989
cmp edi, 0xffffffff
je 0x418989
push edi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
test esi, esi
je 0x41899a
cmp esi, 0xffffffff
je 0x41899a
mov eax, dword [sym.imp.KERNEL30.dll_CloseHandle]
push esi
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4189ab
push eax
call fcn.00487954
add esp, 4
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00487555
mov esp, ebp
pop ebp
ret 4